Financial model grain and signs
Quick answer — a financial model has two time grains
A financial management model connects a chart of accounts to movements and balances. Movements measure activity over an interval; balances measure a position at a date. Start with a signed trial balance and prove it balances before building a visual. This synthetic model uses debit-positive, credit-negative whole USD, a single entity, and a July–June fiscal year. It is educational, not official financial statements or accounting advice.
Design the account hierarchy and facts
In accounts.csv, account 100 is Cash, 110 Receivables, 120 Inventory, 200 Payables, 300 Contributed equity, 400 Revenue, 500 Cost of sales, 600 Operating expense. Map each leaf to a statement and class; group assets, liabilities and equity separately from P&L revenue and expenses. Do not store subtotal accounts as additional fact rows. A flattened hierarchy is sufficient here; for irregular parent-child structures PATH can encode ancestor IDs, but validate unique IDs, existing parents and no cycles before deriving levels.
Create DimMonth containing June 30, July 31 and August 31, 2026. Relate DimMonth and Accounts separately to Actual, Budget and TB using one-to-many, single-direction relationships. Budget additionally has scenario grain. Actual contains monthly signed flows; TB contains cumulative balances including pre-closing P&L. Never join facts to each other or sum both actual and TB.
Worked example 1 — reconcile a signed trial balance
July closing: cash 130, receivables 40, inventory 30, payables -20, equity -100, revenue -200, cost of sales 80 and operating expense 40. Sum = 0. Debits sum 320, credits have magnitude 320. For presentation, assets are 200, liabilities 20, contributed equity 100 and current earnings 80. Assets = liabilities + equity + earnings = 200. Revenue displays as positive 200, expenses as positive 80 and 40; profit is revenue minus expenses. Do not apply ABS to every account: a revenue reversal or contra-account may need a negative display amount.
A raw diagnostic measure is Signed TB = SUM(TB[SignedUSD]). Use it only in an unfiltered account context for one verified closing period. It should be zero, but a zero alone does not prove correctness: require the eight unique accounts and source tie-out.
Worked example 2 — reconcile flow to cumulative accounts
August TB revenue -350 minus July -200 = -150 movement. August cost 150 minus July 80 = 70; expense 80 minus 40 = 40. These match Actual rows. August operating profit 150 - 70 - 40 = 40. Cumulative earnings 120 bridge contributed equity 100 to total equity 220. August assets 160 + 50 + 25 = 235; liabilities 15 plus equity 220 = 235. There is no formal close journal in this fixture. In a production ledger, fiscal close, retained earnings, adjustments and multiple entities need explicit policy and reconciliations.
Quality gates and report layout
Require unique account IDs, complete account-month snapshot keys (explicit zeros), valid leaf IDs and signed trial balance reconciliation. Report mismatches and stop release; offsetting duplicate or missing rows can leave a total of zero. Separate P&L and position visuals with as-of dates. Add text labels for debit and credit policy and currency. Use hierarchy subtotals only when display semantics agree; avoid a grand total adding assets to liabilities or combining profit and revenue. For real statements follow the approved accounting policies and local reporting requirements, not these simplified classes.
Practice and references
Use labs/financial-analytics/trial-balance.csv. Reconcile August debits and credits, total equity including current earnings, and each monthly P&L movement. Remove a zero account from a disposable June copy and explain why the completeness check fails even though balance stays zero. See trial balance reports, financial reporting overview and parent-child PATH. Dynamics documentation is product-specific context, not a general accounting standard. Native DAX NOT RUN.