A standalone Power BI custom visual for the IBCS-inspired income statement: the account hierarchy comes from your dimension table, with subtotal and formula rows, scenarios AC · PY · PL · FC, variance bars and Δ% pins — in five views from a single field binding: table, structure bars, row waterfall and a value driver tree with card zoom. A click sets the Power BI selection (cross-filtering and native drillthrough), periods are parsed from “YYYY-MM”, date columns or month names, and type sizes follow a preset from HD to UHD.
Download straight from the repository and import it in Power BI Desktop via Visualizations → ⋯ → Import a visual from a file.
Get the .pbiviz ↓You do not have to model a P&L structure to get started. Path 1 binds only the levels of a hierarchy you already have, plus the measures — two minutes. Path 2 adds the fields that turn that hierarchy into a real income statement: row types, formula rows, sign conventions and comments.
For any dimension hierarchy you already have — say Category → Product line, or Region → Country → Site. No row types, no formulas.
Category first, then Product line (max. 8).Everything from path 1 — plus the columns of your account dimension that carry structure and signs. Only then does the visual compute gross profit, EBITDA, margins and the full-year outlook.
Account · Subtotal · Formula · KPI · Separator. Subtotals implied by the levels are created synthetically anyway.[Gross profit]+[Operating expenses] or [EBITDA]/[Net revenue]; + − × ÷ and parentheses, formula on formula allowed.1 for revenue, -1 for cost — the sign with which the row enters every total.true on cost rows: they compute negative but are shown positive.true wherever “below plan” is good — cost and taxes.÷ × + −.MAX, not SUM: the FY scalars repeat identically on every monthly row — summed, they come out too large by the number of months.One row per P&L line. The excerpt shows exactly the columns from path 2 — levels, sort order, row type, formula and sign.
| AccountID | L1 | L2 | SortOrder | RowType | FormulaDef | Sign | DisplayInvert |
|---|---|---|---|---|---|---|---|
| 401010 | Net revenue | Pharmaceuticals (Rx) | 11 | Account | 1 | false | |
| 402000 | Net revenue | Consumer Health | 12 | Account | 1 | false | |
| 550010 | Cost of goods sold | Materials | 21 | Account | -1 | true | |
| F_GROSSPROFIT | Gross profit | 25 | Formula | [Net revenue]+[Cost of goods sold] | 1 | false | |
| K_GROSSMARGIN | Gross margin | 26 | KPI | [Gross profit]/[Net revenue] | 1 | false |
Net revenue and Cost of goods sold are not rows of their own — those subtotals are created synthetically from the L1 paths, and the formula rows reference them by name.pnlByDatenWG/demoData/pharma/:
pharma-dim-konten[AccountID] 1:* pharma-fact-guv[AccountID]. Measures: AC = SUM('pharma-fact-guv'[AC]), likewise PY and PL; FC FY = MAX('pharma-fact-guv'[FC_FY]) and PL FY = MAX('pharma-fact-guv'[PL_FY]). To reconcile: EBITDA YTD AC = 571.2 · PY 499.6 · PL 532.0 mEUR.
Two places where real models like to deviate from the textbook: unevenly deep hierarchies and period labels beyond “YYYY-MM”.
L3 is blank, the last filled level is the leaf.L2 holds the same text as L1, the hierarchy ends there.YYYY-MM, YYYY-MM-DD, ISO timestamps, YYYY/MM, real date columns, German and English month names (long and short, with and without a dot: “Dec”, “Dec.”, “December”, “Dez”, “Mrz”, “Sept.”) also combined with a year (“Mar 2026”), plus plain numbers 1–12. Anything unreadable is reported as unreadable instead of guessed.
One field binding, five points of view — switched in the toolbar above the statement, without touching the format pane. Every toolbar state is persisted and bookmarkable.
The classic statement: accounts and result rows with period blocks MTD · YTD · FY outlook, variance bars and Δ% pins against the chosen reference. The variance scale is identical across all rows of a column; margin rows compute in percentage points.
The same rows, each with a size bar — the structure of the result becomes visible at a glance without giving up the numbers. Built for the question “what is this P&L actually made of”.
The statement as a cascade: the result anchors (net revenue, gross profit, EBITDA, EBIT, EBT, net income) sit on the zero line while the cost blocks float between them. The waterfall works on the root level of the hierarchy.
The result tree — from the formula graph (DuPont) or, when no formula row is bound, from the plain hierarchy. Tidy layout with one column per level, operator circles on the edges, status borders and compact cards from level 4 on. ⌖ re-roots the tree on any card, the breadcrumb leads back.
The P&L as a flow from left to right on the driver-tree graph: revenue components flow grey into revenue, the profit strand runs right in the favourable colour, costs branch off unfavourably into their own end nodes — band height proportional to AC YTD. Clicking a node opens the tile zoom. Deliberately outside IBCS notation; the footer says so. Since 1.6.
Clicking a card chart in the tree zooms that node to a full page: a combo chart with months and bridge, the scenario grid, “contributes to” and “driven by”. The zoom scales itself into the viewport; “← back to the tree” leaves it.
A left click on a value column (or on the tile header) sets the Power BI selection of that row — including every source row of the account; subtotals select the leaves beneath them, formula rows the leaves of their operands. A right click opens the native context menu with the page's drillthrough targets. Switch it off under Style → selection & context menu active.
Stocks (balance-sheet items, cash) show the balance at the reporting date instead of the sum of the months. Set the token stock or opening in the row type (Account stock) — or choose “Every row a stock” under Stocks & flows. Ready-made layouts in the gallery group “Balance sheet & cash flow”: T05A balance sheet (balance against the prior-year date, double rule under the balance-sheet total) and T05B cash-flow bridge (opening balance → flows → closing balance). Sample data: demoData/bilanz-*.csv, cashflow-*.csv.
In the toolbar group Exceptions, ⚡ colors only rows whose variance against PY, PL or FC reaches the threshold (default 5 %, optionally an amount); the rest turns gray or — with ⊘ — is hidden or combined in every view, totals stay.
L1).Most of it is set from the in-visual toolbar (view · column preset · Δ reference · periods · unit · density · levels · options). These format settings define the defaults behind it — plus a few things the toolbar cannot do.