> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Variance Analysis

> Compare actuals against a selected budget to identify variances by account in the Finance & Revenue core.

The Variance Analysis page (`/fa/analytics/variance`) compares actual financial data against a selected budget and visualizes per-account variances.

## Overview

The Variance Analysis page provides a budget selector (`useBudgets` for the list) and then fetches variance data via `useVarianceAnalysis` keyed by `organizationId` and `selectedBudgetId`. The data is rendered in both a `VarianceChart` and a `DataTable` of `VarianceSummary` rows.

Column observations from `DataTable<VarianceSummary>`: the component renders variance figures using `formatCurrency` and a `Badge` for status classification.

## Who it's for

Requires permission: `fa.analytics.variance.view`.

## Before you start

* At least one budget must exist.
* Financial transaction data must exist for the current organization.
* You need `fa.analytics.variance.view` to access this page.

## Steps

**View variance analysis**

1. Navigate to `/fa/analytics/variance`.
2. Select a **Budget** from the dropdown.
3. The variance chart and table populate automatically.

## Key concepts

* **Variance summary**: A `VarianceSummary` type row from `src/cores/fa/types/analytics` containing budget vs. actual comparison data.
* **Budget selector**: Populated by `useBudgets`; no budget selected shows a loading or empty state.

## Related

<Columns cols={2}>
  <Card title="Finance & Revenue" icon="building-columns" href="/fa/overview">
    Finance & Revenue core overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index" />
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/fa.tsx
  * src/cores/fa/pages/VarianceAnalysisPage.tsx
  * src/cores/fa/hooks/useVarianceAnalysis.ts
  * src/cores/fa/types/analytics.ts
  * src/cores/fa/components/analytics/VarianceChart.tsx
</Accordion>
