How-to guide
How to Build a Cash Flow Forecast in Power BI
Cash is the number a finance lead is asked about first and can often answer least confidently, because the forecast lives in a spreadsheet one person maintains. This guide shows how to build a cash flow forecast in Power BI that holds up week after week: dating receivables and payables by when they will really clear, keeping actuals and forecast in one continuous table, and spotting when the built-in forecast line contradicts your ledger.
A profit forecast and a cash forecast answer different questions. The P&L tells you whether the business is earning money; the cash forecast tells you whether the bank balance stays above the line you care about on a given week. The gap between the two is timing — when customers pay, when you pay suppliers, when payroll and loan payments leave the account. Nearly every design decision below exists to model that timing honestly, and the sections follow the order we work in on real finance builds.
What does a cash flow forecast in Power BI actually model?
It models dated cash movements, not accruals. Every row is money expected to enter or leave a bank account on a specific date: a customer receipt, a supplier payment, a payroll run, a loan installment. Sum those movements by week, add them to an opening balance, and you get a projected closing cash position for each period.
That is the direct method: receipts minus disbursements. The indirect method — starting from net income and adjusting for working capital — is useful for explaining cash after the fact, but it is a poor fit for a forward-looking weekly view, because it needs a forecast P&L and balance sheet first. For an operational forecast, build the direct method from your sub-ledgers and keep the indirect reconciliation as a separate month-end view if you need one.
The shape that holds this together is a small star schema (opens in new tab): one Cash fact table of dated movements, related to a Date table, a Cash Category table (customer receipts, payroll, rent, debt service, and so on), and usually Entity and Bank Account dimensions. The category table carries the grouping and the sign convention, so receipts and disbursements roll up into the same tidy hierarchy on every visual.
How do you keep actuals and forecast in one table?
Load actual and forecast movements into the same Cash fact table with a Type column, then pick a cutover date. Weeks on or before the cutover show actuals; weeks after it show forecast. The result is one continuous line from history into the future that rolls forward automatically as new actuals land.
This deliberately differs from a budget vs actual model, where we keep the two facts separate because they are compared side by side for the same period. A cash forecast is not mainly a comparison — it is a single timeline in which forecast rows are replaced by actuals as each week closes. One table with a cutover keeps that handoff in one place instead of spreading it across two facts and a tangle of measures.
First, find the cutover — the last date that has actual cash recorded, regardless of what the report is currently filtered to:
Last Actual Date = CALCULATE ( MAX ( Cash[Date] ), ALL ( Cash ), Cash[Type] = "Actual" )
Then the net movement measure takes actuals up to the cutover and forecast after it. KEEPFILTERS matters here: without it, the date condition would overwrite the week on the visual axis and every week would show the same total.
Net Cash Flow =
VAR Cutover = [Last Actual Date]
RETURN
CALCULATE ( SUM ( Cash[Amount] ), Cash[Type] = "Actual", KEEPFILTERS ( 'Date'[Date] <= Cutover ) )
+ CALCULATE ( SUM ( Cash[Amount] ), Cash[Type] = "Forecast", KEEPFILTERS ( 'Date'[Date] > Cutover ) )
Closing cash is a running total of that measure. Load the opening bank balance as a single actual row on the first date of the model, and the running total becomes the projected balance for every week:
Closing Cash = CALCULATE ( [Net Cash Flow], FILTER ( ALL ( 'Date'[Date] ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ) )
If running totals are new to you, our guide to running total DAX in Power BI explains why the FILTER ( ALL ( … ) ) pattern works and when to reach for WINDOW instead. For the general case of separate actual and plan facts, see our budget vs actual report guide.
How do you model AR and AP timing?
Date every open receivable by when the customer is likely to pay, not when the invoice is due, and every open payable by when you will actually pay it. Receipts follow customer behavior; disbursements follow your own payment-run policy. Getting those two dates right does more for forecast accuracy than any amount of DAX.
For receivables, calculate each customer's typical days late from paid-invoice history in Power Query, store it on the Customer dimension, and shift the due date by it. A calculated column on the open-invoice table is enough:
Expected Receipt Date = Invoices[Due Date] + RELATED ( Customer[Typical Days Late] )
Customers with no payment history get the due date or a conservative default, and the few largest balances deserve a manual review — one large late payer can move the whole forecast. For payables, roll each bill's due date forward to your next scheduled payment run, since most teams pay in batches rather than on the exact due date. The table below covers the main cash lines and how each one should be dated.
| Cash line | What sets the timing | How to date it in the model | Watch for |
|---|---|---|---|
| Open AR invoices | Customer payment behavior, not the due date | Due date shifted by the customer’s typical days late | Disputed or partially paid invoices counted in full |
| Sales not yet invoiced | Pipeline or plan, then your payment terms | Expected invoice date, plus terms, plus typical lag | Double counting once the invoice is raised in the ledger |
| Open AP bills | Your payment-run policy | Next scheduled payment run on or after the due date | Bills on hold, or suppliers you pay early for a discount |
| Payroll and payroll taxes | Your pay calendar | Fixed pay dates from the payroll calendar | Bonus and commission months that break the pattern |
| Recurring fixed costs | Contract schedules for rent, loans, and subscriptions | A schedule table with one row per payment date | Annual renewals that all land in the same week |
| One-off items | Management decisions on capex, tax, or distributions | Manually entered rows with an owner and a date | Items nobody owns, which quietly drop out of the forecast |
Every line in that table becomes forecast rows in the same Cash fact, tagged with its category. Ledger-driven lines refresh from the source system; schedule-driven and manual lines usually come from a small, controlled spreadsheet or SharePoint list that finance owns.
When does the built-in Power BI forecast mislead?
Power BI’s built-in forecast misleads whenever the future cash is already known and differs from the past pattern. It extrapolates a line from its own history; it cannot see the invoices you have issued, the bills coming due, or next month’s loan payment. Cash is lumpy and calendar-driven, which is exactly where pure extrapolation struggles.
The feature lives in the Analytics pane of a line chart. Microsoft’s documentation on using the Analytics pane in Power BI (opens in new tab) notes that forecasting needs time data, is available only on line charts, and lets you set inputs such as forecast length and confidence interval. That makes it handy for a quick read on trend and seasonality. It also means the projection sits on the visual rather than in your model, so other measures cannot reference it and nobody can reconcile it line by line.
Use it as a cross-check, not the answer. If the driver-based closing cash and the Analytics pane projection diverge sharply, that is a prompt to ask why — a large one-off in history, a change in customer terms, a seasonal peak the drivers are missing. The table below compares the approaches finance teams typically use.
| Method | How it works | Good for | Misleads when |
|---|---|---|---|
| Analytics pane forecast | Extrapolates the chart’s own history over a set length, with a confidence band | A quick sense of trend and seasonality | A known payment is coming, cash is lumpy, or history includes one-offs |
| Driver-based (ledger timing) | Dates each open invoice, bill, and scheduled payment | Near-term weeks, where obligations are already on the books | Customer payment behavior shifts and nobody refreshes the lag |
| Plan-led | Loads monthly assumptions from a planning file | Months further out, before invoices exist | The plan is stale, or was built on P&L timing instead of cash timing |
| Hybrid | Driver-based near term, plan-led beyond a set horizon date | Most finance teams, most of the time | The handoff is unlabeled, so readers cannot tell known from assumed |
How do you measure forecast accuracy over time?
Save a snapshot of each week’s forecast before it rolls forward, then compare what each snapshot predicted with what actually happened. Without snapshots, the forecast silently overwrites itself every refresh and you can never tell whether it is getting better or worse.
Add a Snapshot Date column to forecast rows and append each new version rather than replacing the last one. A Snapshot slicer then lets you pick, say, the forecast made four weeks ago and set it against actuals for the same weeks. Where the misses cluster — one category, one large customer, one entity — is where the drivers need work. Keep the history pruned to the snapshots you will genuinely review, so the model stays small and refresh stays quick. To turn those comparisons into numbers, our guide to Power BI forecast accuracy writes the MAPE, bias and WMAPE measures in DAX.
What should the forecast report page show?
Lead with projected closing cash over time, with a clear visual break where actuals end and forecast begins, and a reference line at your minimum cash threshold. A reader should see within seconds whether, and when, the balance gets uncomfortably close to that line.
- Closing cash line by week, styled differently either side of the cutover, with a constant line at the minimum balance your lenders or owners care about.
- Receipts vs disbursements as weekly columns beneath it, so a dip in the balance is explained by the movements that caused it.
- Upcoming large items — a short table of the biggest expected receipts and payments in the next few weeks, with customer or supplier and date.
- Horizon split — weekly buckets for the near term (many teams run a rolling quarter, often called a 13-week view) and monthly buckets beyond, with the plan-led portion clearly labeled.
Label forecast values plainly as forecast, keep the category hierarchy in business language, and set the page to open on the current week. For layout principles that apply to any finance page, our guide on how to design a Power BI dashboard goes further.
Where does the cash forecast data come from?
Actuals come from bank transactions or the cash accounts in your general ledger; forecast drivers come from the open AR and AP sub-ledgers, the payroll calendar, and a small finance-owned schedule for everything else. Most small and mid-sized teams already hold all of it in their accounting system.
If you run on QuickBooks, our QuickBooks to Power BI connection guide covers getting open invoices and bills into the model, and the QuickBooks Power BI dashboard service covers the full build. Xero teams can start from the Xero Power BI dashboard page. Whatever the source, schedule refresh so open items update at least daily; a cash forecast built on last week’s receivables is already out of date.
Putting it together
A trustworthy cash forecast is a timing model with a chart on top. Date receivables by expected receipt and payables by payment run; load actual and forecast movements into one table with a clean cutover; build closing cash as a running total from the opening balance; snapshot each version so you can measure accuracy; and use the Analytics pane forecast only as a cross-check. Cash forecasting sits alongside variance and board reporting in our Power BI dashboards for finance teams, and for advisors running the same forecast across a portfolio of clients, our Power BI for fractional CFOs page covers how we standardize one model across every engagement.
FAQ
Frequently asked questions
Partly. The Forecast option in a line chart's Analytics pane projects a series forward from its own history, using a forecast length and confidence interval you set. It cannot see open invoices, bills coming due, or payroll dates, so treat it as a sanity check against a driver-based forecast, not as the forecast itself.
For cash, one table usually works better. Load actual and forecast movements into the same fact table with a Type column, then use a cutover date so each week shows actuals up to the last closed period and forecast after it. The line stays continuous, and the forecast rolls forward as actuals land.
Start from each open invoice's due date, then shift it by how late that customer has typically paid, calculated from your paid-invoice history. Customers with no history get the due date or a conservative default. Review the largest balances by hand, because one big late payer can move the whole forecast.
Most teams forecast weekly for the near term, where receivable and payable timing is already known, and monthly further out, where the forecast leans on plan assumptions. Roughly a quarter is a common weekly horizon. Pick the horizon your lenders, board, or owners actually ask about, and keep it rolling forward every week.
Yes. A cash flow forecast built on your ledger data is the kind of finance work our prepaid Flex hours cover. Blocks are Starter $2,500, Growth $4,600, and Power $8,000, with hourly help from $100 per hour. We scope the work first, you approve it, and unused hours never expire.
Try us risk-free for 4 hours
If you're unhappy within the first 4 hours of your block, we'll refund you in full — no questions asked. Hours are deducted only for work you've reviewed and approved.
Want a cash forecast your team actually trusts?
Bring your ledger and your current forecast spreadsheet to a free demo. Rebuilding a cash forecast on dated AR and AP timing is exactly the kind of task your prepaid hours cover. We scope it, you approve, and most 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