How-to guide

How to Build a Power BI Balance Sheet That Actually Balances

A power bi balance sheet reports what the business owns and owes on one date, which is the opposite of the P&L’s job of summing activity across a period. That single difference drives the whole build: closing-balance measures that ignore the period start, a table that maps accounts to balance sheet lines, and a current year earnings plug that makes assets equal liabilities plus equity.

Teams that have already built a P&L usually try to reuse its measures for the balance sheet, and the result looks broken in a specific way: cash shows only this month’s movement, the year column adds twelve month-ends together, and assets never equal liabilities plus equity. Each of those has a clear cause, and the sections below take them in the order we fix them on finance builds.

How is a balance sheet different from a P&L in Power BI?

A P&L sums activity between two dates, while a balance sheet reports what each account holds on one date. In DAX that means the P&L measure respects the period filter, but the balance sheet measure must ignore the period start and add up every posting from the first transaction to the period-end date.

Everything else follows from that. The table sets the two statements side by side so you can see which parts of a P&L build carry over and which do not.

Aspect Profit and loss statement Balance sheet
What it reportsFlows: revenue earned and costs incurred during a periodPosition: assets, liabilities and equity at a single date
Date logic in DAXSum postings inside the selected periodSum all postings on or before the last date in the period
Accounts usedIncome and expense accountsAsset, liability and equity accounts, plus the P&L accounts through the earnings plug
What a year column showsThe total for the yearThe year-end balance, not a sum of month-ends
Check that proves itNet Income ties to the accounting system’s P&LTotal Assets minus Total Liabilities and Equity equals zero

The line mapping, the sign column and the SWITCH measure that routes matrix rows all carry over from our guide to the Power BI profit and loss statement. What changes is the date logic and the extra equity line that ties the two statements together.

How do you map accounts to balance sheet lines?

Create a layout table with one row per balance sheet line, a section of Assets, Liabilities or Equity, a sort order, a line type and a sign. Point every balance-sheet account at one line through a LineID column on the Account dimension, and leave income and expense accounts unmapped, because they reach equity through the earnings plug.

The general-ledger fact table relates to Account, and Account relates to the BS Layout table, following the star schema guidance Microsoft publishes for Power BI (opens in new tab). The layout below is an example; your account ranges will differ, and because they live in data, a new account needs one mapping row rather than a measure change.

Order Balance sheet line Section Line type Example account range Sign
10Cash and Cash EquivalentsAssetsDetail1000–1099+1
20Accounts ReceivableAssetsDetail1100–1199+1
30InventoryAssetsDetail1200–1299+1
40Fixed Assets, NetAssetsDetail1500–1799+1
50Total AssetsAssetsSubtotalNone — calculated—
60Accounts PayableLiabilitiesDetail2000–2099-1
70Accrued and Other LiabilitiesLiabilitiesDetail2100–2499-1
80Long-Term DebtLiabilitiesDetail2500–2999-1
90Total LiabilitiesLiabilitiesSubtotalNone — calculated—
100Owner’s Equity and Retained EarningsEquityDetail3000–3899-1
110Current Year EarningsEquityPlugNone — from P&L accounts—
120Total EquityEquitySubtotalNone — calculated—
130Total Liabilities and Equity—SubtotalNone — calculated—

Liabilities and equity are credit-natured, so they arrive from a transaction-level ledger as negative amounts; a Sign of -1 shows them as positive figures. Contra accounts such as accumulated depreciation sit inside Fixed Assets with a credit balance, and because the sign applies to the whole line, they reduce the line correctly with no special handling. To build that accumulated depreciation and net book value asset by asset from the fixed asset register, see our Power BI depreciation schedule guide. Add a Statement column to Account with values such as “Balance Sheet” and “Income Statement”; the earnings plug filters on it.

How do you write a closing balance measure in DAX?

Take the last date visible in the filter context, remove the date filter, and sum every ledger posting on or before that date. The result is the balance at period end, so a month column shows month-end, a quarter shows quarter-end, and a year column shows the year-end position without any special total logic.

Starting from the same base measure the P&L uses:

GL Amount = SUM ( GL[Amount] )

Closing Balance =
VAR _end = MAX ( 'Date'[Date] )
RETURN
CALCULATE ( [GL Amount], REMOVEFILTERS ( 'Date' ), 'Date'[Date] <= _end )

The section totals filter that measure to a section and apply its sign:

Total Assets = CALCULATE ( [Closing Balance], 'BS Layout'[Section] = "Assets" )

Total Liabilities = - CALCULATE ( [Closing Balance], 'BS Layout'[Section] = "Liabilities" )

It is tempting to reach for the built-in closing-balance functions instead. Microsoft’s CLOSINGBALANCEMONTH reference (opens in new tab) describes it as evaluating an expression at the last date of the month in the current context. That suits a table that already stores balances, such as monthly trial-balance snapshots. On transaction-level ledger rows it returns only the postings dated on that last day, which is the most common reason a first balance sheet shows small, erratic numbers.

The inception-to-date measure above is a running total over the whole ledger. Our running total DAX guide covers the general pattern, its variants and the date-table mistakes that break it, so we will not repeat them here. If years of history make the measure slow, load one opening-balance row per account at a cutoff date and let the measure sum forward from there.

Why doesn’t my balance sheet balance?

Usually because income and expense accounts have not been closed into retained earnings yet. Until year-end close, this year’s profit sits in P&L accounts the balance sheet ignores, so the gap between assets and liabilities plus equity equals the year-to-date net income. Add a Current Year Earnings line that brings that profit into equity.

Net income is the negative of the summed income and expense postings, because revenue is a credit. For a calendar fiscal year:

Current Year Earnings =
VAR _end = MAX ( 'Date'[Date] )
VAR _start = DATE ( YEAR ( _end ), 1, 1 )
RETURN
- CALCULATE ( [GL Amount], REMOVEFILTERS ( 'Date' ), 'Date'[Date] >= _start, 'Date'[Date] <= _end, Account[Statement] = "Income Statement" )

Total Equity = - CALCULATE ( [Closing Balance], 'BS Layout'[Section] = "Equity" ) + [Current Year Earnings]

Total Liabilities and Equity = [Total Liabilities] + [Total Equity]

Balance Check = [Total Assets] - [Total Liabilities and Equity]

Prior years need a look too. Many small-business accounting systems calculate retained earnings inside their own reports instead of posting a closing journal, so a raw ledger extract never moves old profit into the retained earnings account. If your balance check is off by the profit of earlier years, add those years to equity with the same measure, using 'Date'[Date] < _start in place of the current-year range.

The reason to derive the plug from income and expense accounts, rather than defining it as whatever makes the statement balance, is that every journal entry nets to zero. When the data is complete, the balance check returns zero on its own. When it does not, the non-zero figure is telling you something real: a balance-sheet account missing from the mapping, a one-sided import, or a period that did not load. Once the check holds, Total Assets and Total Equity become the averaged denominators in a Power BI DuPont analysis that splits return on equity into margin, asset turnover and leverage.

How do you lay out the matrix visual?

Put the layout line names on rows, month-end dates or periods on columns, and a single SWITCH measure in values that returns detail lines, the earnings plug and the four totals. Turn off the grand total row, because the totals already live in the layout as their own lines.

As on the P&L, the subtotal and plug rows have no accounts mapped to them, so the layout filter must be removed inside those branches or they return blank:

BS Value =
VAR _line = SELECTEDVALUE ( 'BS Layout'[LineName] )
VAR _type = SELECTEDVALUE ( 'BS Layout'[LineType] )
RETURN
SWITCH ( TRUE (),
  _type = "Detail", [Closing Balance] * SELECTEDVALUE ( 'BS Layout'[Sign] ),
  _line = "Current Year Earnings", CALCULATE ( [Current Year Earnings], REMOVEFILTERS ( 'BS Layout' ) ),
  _line = "Total Assets", CALCULATE ( [Total Assets], REMOVEFILTERS ( 'BS Layout' ) ),
  _line = "Total Liabilities", CALCULATE ( [Total Liabilities], REMOVEFILTERS ( 'BS Layout' ) ),
  _line = "Total Equity", CALCULATE ( [Total Equity], REMOVEFILTERS ( 'BS Layout' ) ),
  _line = "Total Liabilities and Equity", CALCULATE ( [Total Liabilities and Equity], REMOVEFILTERS ( 'BS Layout' ) )
)

  • Sort lines by Order. Set LineName to sort by the Order column so assets come first and the statement never sorts alphabetically.
  • Show the balance check. Put [Balance Check] on a card beside the matrix during the build, and keep it on a hidden validation page once it holds at zero.
  • Compare two dates. A balance sheet is usually read as this period-end against the prior year-end; filtering the columns to those two month-ends gives that view without a second measure.
  • Make totals stand out. Drive bold text on subtotal rows from the Line type column through conditional table formatting (opens in new tab).

What changes for a consolidated balance sheet?

Several companies need one reporting chart of accounts, a mapping from each entity into it, intercompany balances eliminated, and foreign subsidiaries translated at the closing rate with equity at historical rates. The translation difference lands in a cumulative translation adjustment line, which is a second plug your layout has to carry.

That is a modeling project rather than an extra slicer. Our multi-entity consolidation dashboard service builds the consolidated statements on the same mapping approach, scaled to a group. For a single entity, the steps on this page are the whole job.

Putting it together

Map every balance-sheet account to a line, sum each line from the first posting to the period end, bring this year’s profit into equity from the income and expense accounts, and route the matrix through one SWITCH measure that clears the layout filter on totals. Then reconcile the first month-end to the balance sheet report in your accounting system. Once the balance check reads zero and the totals tie, every later month inherits the same logic.

FAQ

Frequently asked questions

The measure is probably summing only the postings inside the selected month, or using CLOSINGBALANCEMONTH on transaction rows, which returns just the activity dated on the last day. A balance needs every posting from the first transaction up to the period end, so remove the date filter and keep dates on or before the last visible date.

No. A plug defined as the difference always balances, so it hides unmapped accounts and incomplete imports. Calculate current year earnings from the income and expense accounts instead. Because every journal entry nets to zero, the statement then balances only when the data is complete, and a non-zero balance check points straight at the problem.

Yes. Both statements should share one marked date table. The difference lives in the measures: P&L measures respect the selected period, while balance sheet measures take the last date in that period and sum everything up to it. Sharing the table lets one slicer drive both statements on the same report page.

Change the start date in the current year earnings measure. Instead of January 1, use the first day of the fiscal year that contains the period end, ideally read from a fiscal year column in your date table. Prior-year earnings then roll into retained earnings at the fiscal year boundary rather than at calendar year end.

Want a balance sheet that ties out on the first month-end?

Bring your chart of accounts to a free demo. Building the line mapping, the closing-balance measures and the earnings plug on your own ledger is exactly the kind of task prepaid Flex hours cover — we scope it, you approve, and most focused builds land in 3–5 business days.

Scope approved before any hours are used · Hours never expire

Book a free demo

See what your Power BI reporting would take

Tell us the task. We reply within one business day, and you get a scope estimate and the hours needed before any work begins.

Step 1 of 2: What do you need?

How can we help? Pick one

Tap to add, or type your own:

Step 2 of 2: Where should we reply?

Used only to contact you about this inquiry.

We reply within one business day. Scope approved before any hours are used. We don’t sell your information.

Tell us the task. We scope it, you approve, and a senior consultant delivers — typically in 3–5 business days. Prepaid hours that never expire.

  • Prepaid hours from $100/hour — and they never expire
  • Senior-led delivery — 20+ years on the Microsoft platform
  • Typical 3–5 business day turnaround
  • Full refund if you’re unhappy in your first 4 hours
Book my free demo