How-to guide
How to Build a Power BI Cash Flow Statement with the Indirect Method
A power bi cash flow statement reports where cash came from and where it went during a period that has already closed; to project the weeks ahead instead, see our guide on how to build a cash flow forecast in Power BI. The indirect method used here starts from net income, adds back non-cash items such as depreciation, bridges the change in working capital and reconciles to the cash balance in your ledger.
If you have already built the Power BI profit and loss statement and the Power BI balance sheet from our earlier guides, most of the model is in place: the general-ledger fact table, the Account dimension, the marked date table and the closing-balance logic. The cash flow statement adds one more layout table, two columns on Account and one sign rule, and it is the statement that proves the other two agree with each other.
How does the indirect method work in Power BI?
The indirect method starts from net income, adds back non-cash expenses such as depreciation, then adjusts for the period change in each working capital account. In Power BI every one of those figures already sits in the general ledger, so the statement is a mapping table plus one measure that reverses the sign of period postings. To measure how many days cash stays tied up in receivables and inventory rather than how much those balances moved, see our guide to the Power BI cash conversion cycle.
The reason one sign rule is enough is double entry. Every journal entry nets to zero, so over any period the movement in cash equals minus the movement in every other account combined. Net income is minus the period postings to income and expense accounts, because revenue is a credit. A rise in receivables is a debit, so reversing its sign turns it into a cash outflow; a rise in payables is a credit, so the same reversal turns it into an inflow. The table shows how each part of the statement comes out of the ledger.
| Statement part | Accounts it reads | Ledger movement in the period | Cash effect after reversing the sign |
|---|---|---|---|
| Net income | All income and expense accounts | Net credit when the business made a profit | Positive starting point for operating cash |
| Depreciation add-back | Accumulated depreciation and amortization | Credit as the period’s depreciation is booked | Positive: the expense reduced profit but not cash |
| Working capital assets | Receivables, inventory, prepaid expenses | Debit when the balance grows | Negative: cash is tied up in the asset |
| Working capital liabilities | Payables, accrued liabilities | Credit when the balance grows | Positive: cash has not yet gone out |
| Investing | Fixed asset cost accounts | Debit when equipment is bought | Negative: cash spent on long-term assets |
| Financing | Loans, owner equity, distributions | Credit on a new loan, debit on a repayment or distribution | Positive for borrowing, negative for repayments and payouts |
| Cash itself | Bank and cash accounts | The actual change in cash | Not mapped: used only to check the statement |
How do you map accounts to cash flow lines?
Add a cash flow layout table with one row per statement line, a section of Operating, Investing or Financing, a sort order and a line type. Give every account a CF LineID: income and expense accounts all point to Net Income, balance-sheet accounts point to their working capital, investing or financing line, and cash accounts stay unmapped.
As with the other two statements, the general-ledger fact relates to Account, and Account relates to the new CF Layout table, in line with the star schema guidance Microsoft publishes for Power BI (opens in new tab). Add an IsCash true/false column to Account as well, so the cash balances can be read without a mapping. The layout below is an example; your account ranges will differ.
| Order | Cash flow line | Section | Line type | Example accounts mapped |
|---|---|---|---|---|
| 10 | Net Income | Operating | Detail | All income and expense accounts, 4000–8999 |
| 20 | Depreciation and Amortization | Operating | Detail | Accumulated depreciation, 1700–1799 |
| 30 | Change in Accounts Receivable | Operating | Detail | 1100–1199 |
| 40 | Change in Inventory | Operating | Detail | 1200–1299 |
| 50 | Change in Accounts Payable | Operating | Detail | 2000–2099 |
| 60 | Change in Accrued and Other Liabilities | Operating | Detail | 2100–2499 |
| 70 | Net Cash from Operating Activities | Operating | Subtotal | None — calculated |
| 80 | Purchases of Property and Equipment | Investing | Detail | Fixed asset cost, 1500–1699 |
| 90 | Net Cash from Investing Activities | Investing | Subtotal | None — calculated |
| 100 | Borrowings and Repayments of Debt | Financing | Detail | 2500–2999 |
| 110 | Owner Contributions and Distributions | Financing | Detail | 3000–3899 |
| 120 | Net Cash from Financing Activities | Financing | Subtotal | None — calculated |
| 130 | Net Change in Cash | — | Subtotal | None — calculated |
| 140 | Opening Cash | — | Balance | None — read from IsCash accounts |
| 150 | Closing Cash | — | Balance | None — read from IsCash accounts |
Notice there is no sign column. On the P&L and the balance sheet the sign exists to make credit-natured lines read as positive; here every detail line uses the same reversal, and the result is already the cash effect. Split fixed assets into cost and accumulated depreciation accounts if your chart of accounts combines them, because the two belong on different lines.
Which DAX measures does the cash flow statement need?
Five short measures: a cash movement measure that negates period postings, section totals that filter it to Operating, Investing or Financing, a net change in cash measure, and opening and closing cash balances. Unlike the balance sheet, the movement measures respect the selected period, so a year column simply sums the months.
Starting from the same base measure the other statements use:
GL Amount = SUM ( GL[Amount] )
Cash Effect = - [GL Amount]
Operating Cash Flow = CALCULATE ( [Cash Effect], 'CF Layout'[Section] = "Operating" )
Investing Cash Flow = CALCULATE ( [Cash Effect], 'CF Layout'[Section] = "Investing" )
Financing Cash Flow = CALCULATE ( [Cash Effect], 'CF Layout'[Section] = "Financing" )
Net Change in Cash = [Operating Cash Flow] + [Investing Cash Flow] + [Financing Cash Flow]
The two cash balances are the only point-in-time figures on the statement. Opening cash sums every cash posting before the first date in the period, and closing cash sums every cash posting up to the last:
Opening Cash =
VAR _start = MIN ( 'Date'[Date] )
RETURN
CALCULATE ( [GL Amount], REMOVEFILTERS ( 'Date' ), 'Date'[Date] < _start, Account[IsCash] = TRUE () )
Closing Cash =
VAR _end = MAX ( 'Date'[Date] )
RETURN
CALCULATE ( [GL Amount], REMOVEFILTERS ( 'Date' ), 'Date'[Date] <= _end, Account[IsCash] = TRUE () )
That is the same inception-to-date pattern the balance sheet uses, and our running total DAX guide explains why it needs REMOVEFILTERS on the date table and what breaks it. Opening cash uses MIN and a strict less-than, so a quarter column opens on the balance at the end of the previous quarter rather than at the start of its last month. If you are new to the date-based functions, Microsoft’s time intelligence functions reference (opens in new tab) lists the built-in alternatives, though the explicit filters above are easier to audit.
How do you prove the statement ties to the cash balance?
Add a cash check measure: opening cash plus the net change in cash, minus closing cash. Opening and closing cash come straight from the cash accounts, while the net change is built from every other account, so the two routes only agree when every non-cash account is mapped and every journal entry loaded in full.
Cash Check = [Opening Cash] + [Net Change in Cash] - [Closing Cash]
When the check is not zero, this measure finds the culprit. Put Account on the rows of a table visual with it and filter out blanks:
Unmapped Movement = CALCULATE ( [Cash Effect], ISBLANK ( Account[CF LineID] ), Account[IsCash] = FALSE () )
Any account it lists moved during the period but has no cash flow line. Map it, and the check returns to zero. If the list is empty and the check is still off, a journal entry arrived one-sided, which usually means an import filtered out some lines or a period failed to load.
Why doesn’t my cash flow statement tie to cash?
The three usual causes are an account with no cash flow line, a year-end closing entry inside the period, and non-cash transactions such as equipment bought on credit. The first breaks the cash check; the other two keep it at zero but put amounts on the wrong lines, so review the statement as well as the check.
- Unmapped accounts. A new account added in the accounting system has no CF LineID until someone maps it. The
Unmapped Movementtable above names it. - Closing entries. If your system posts a journal that moves the year’s profit into retained earnings, the period containing it shows net income near zero and the profit under Owner Contributions and Distributions. Exclude those entries in
GL Amountif your extract flags them, or keep retained earnings closes out of the fact table. - Non-cash investing and financing. Equipment bought with a loan raises fixed assets and debt together, so the statement shows an investing outflow and a financing inflow that never touched the bank. The total is right; the gross lines are not. Reclassify those entries, or disclose them beside the statement.
- Asset disposals. A sale reduces fixed asset cost and accumulated depreciation, and any gain sits inside net income. Totals still tie, but a presentation that shows sale proceeds under investing and removes the gain from operating needs its own adjusting line.
How do you lay out the matrix visual?
Put the layout line names on rows, months or quarters on columns, and one SWITCH measure in values that returns detail lines, the three section subtotals, the net change and the two cash balances. Turn off the matrix grand total, because the subtotals already live in the layout as their own rows.
The subtotal and balance rows have no accounts mapped to them, so each of those branches removes the layout filter first, exactly as on the balance sheet:
CF Value =
VAR _line = SELECTEDVALUE ( 'CF Layout'[LineName] )
VAR _type = SELECTEDVALUE ( 'CF Layout'[LineType] )
RETURN
SWITCH ( TRUE (),
_type = "Detail", [Cash Effect],
_line = "Net Cash from Operating Activities", CALCULATE ( [Operating Cash Flow], REMOVEFILTERS ( 'CF Layout' ) ),
_line = "Net Cash from Investing Activities", CALCULATE ( [Investing Cash Flow], REMOVEFILTERS ( 'CF Layout' ) ),
_line = "Net Cash from Financing Activities", CALCULATE ( [Financing Cash Flow], REMOVEFILTERS ( 'CF Layout' ) ),
_line = "Net Change in Cash", CALCULATE ( [Net Change in Cash], REMOVEFILTERS ( 'CF Layout' ) ),
_line = "Opening Cash", CALCULATE ( [Opening Cash], REMOVEFILTERS ( 'CF Layout' ) ),
_line = "Closing Cash", CALCULATE ( [Closing Cash], REMOVEFILTERS ( 'CF Layout' ) )
)
- Sort lines by Order. Set
LineNameto sort by theOrdercolumn so the statement reads from net income down to closing cash. - Show outflows in parentheses. A custom format string such as
#,0;(#,0);-onCF Valuegives the accounting look finance readers expect. - Keep the check visible. Put
[Cash Check]on a card beside the matrix while you build, then move it to a validation page once it holds at zero. - Make subtotals stand out. Drive bold text on subtotal and balance rows from the Line type column through conditional table formatting (opens in new tab).
Putting it together
Map every non-cash account to a cash flow line, reverse the sign of its period postings, subtotal by section, and read opening and closing cash straight from the cash accounts. Then run the cash check on the first month and compare the statement to the one your accountant prepares. Once the check reads zero and the lines agree, every later period reuses the same mapping, and the three statements share one ledger, one date table and one set of account definitions.
Related reading
Keep building your finance reports
FAQ
Frequently asked questions
Most general ledgers record cash receipts and payments against bank accounts without tagging them as customer receipts, supplier payments or payroll, so a direct method statement needs extra classification work. The indirect method uses only account balances the ledger already holds, and it ties directly to the income statement and balance sheet you already report.
No. The indirect method is built entirely from the general ledger that already feeds your income statement and balance sheet. You add a cash flow layout table, a cash flow line column and a cash account flag to the Account dimension, then write a handful of measures. No bank feed or extra extract is required.
A cash flow statement explains cash that has already moved, built from posted ledger entries and checked against the ledger cash balance. A forecast projects the weeks ahead from open invoices, bills and assumptions. They can share a date table and a cash balance measure, but they answer different questions and belong on separate report pages.
Because opening cash is the balance just before the first date in the column. A year column starts on the first day of the year, so for a calendar year it shows the January opening balance, while each month column shows its own. Flow lines simply add across months, so the year still bridges opening to closing cash.
Want a cash flow statement that ties out on the first close?
Bring your chart of accounts to a free demo. Mapping your ledger to cash flow lines, writing the measures and reconciling the first month to cash 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
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