Codex Variance Waterfall

Chart

Show how individual drivers bridge from a starting value to an end result.

Styles

5 stylings shipped — every one is a real render, in your theme.

Codex Variance Waterfall — Default
Default
Codex Variance Waterfall — Led Blocks
Led Blocks
Codex Variance Waterfall — Lednoir
Lednoir
Codex Variance Waterfall — Slatejewel
Slatejewel
Codex Variance Waterfall — Solidcorporate
Solidcorporate

Overview

Bridge the gap between forecast and actual. Codex Variance Waterfall is a bridge chart that starts from a baseline total, steps through individual variances — positive and negative — and lands on the final result. It answers the question 'what drove the difference?' in a single, self-explanatory visual.

Ideal For

  • Budget vs actual — what drove the variance by cost centre or product
  • Revenue bridge — price, volume, and mix effects month-over-month
  • Headcount or inventory movements — openings, closings, and net change
  • Any scenario where you need to explain how you got from A to B

Key Features

  • Automatic running total calculation — no pre-calculated cumulative columns needed
  • Positive bars (green) and negative bars (red) with configurable colours
  • Distinct start and end total bars styled differently from step bars
  • Connector lines between bars for readability
  • Sort by absolute variance, category name, or natural order
  • Value labels on all bars with configurable format
  • Hover tooltip showing step label, step value, and running total
  • Click a bar to cross-filter other visuals on the page
Pro Tip

Use ALLSELECTED in your Start Value measure so the opening bar always shows the full forecast total regardless of which categories are filtered.

Help guide

What goes in each field

Field well Put in Required What it does
Category Column Yes One bar per value, such as product category or region.
Start Value Measure No The opening total the waterfall starts from, such as budget. It must return the same number on every category row. Leave it empty and the waterfall starts at zero.
Variance Measure Yes How much each category moves the total up or down. Positive bars rise, negative bars fall.

The closing bar is the start value plus every variance, including the grouped "Other" bar.

Build the measures

The examples assume a Sales table with an Amount column and a Budget table with an Amount column, both related to a Product table that has a Category column. Swap in your own names.

Base measures

Revenue =
SUM ( Sales[Amount] )
Budget Amount =
SUM ( Budget[Amount] )

Start Value: total budget across the categories on show

Budget Start =
CALCULATE ( [Budget Amount], ALLSELECTED ( Product[Category] ) )

ALLSELECTED removes the per-bar category filter but keeps your slicers. Every category row gets the same opening total, which the visual requires. If the rows disagree, the visual shows a message instead of a chart.

Variance: actual minus budget for each category

Budget Variance =
VAR Act = [Revenue]
VAR Bud = [Budget Amount]
RETURN
    COALESCE ( Act, 0 ) - COALESCE ( Bud, 0 )

COALESCE turns a missing actual or budget into zero, so a category with no sales still shows its full shortfall. A variance of exactly zero draws no bar. A blank variance is left out and the chart notes how many categories were omitted, because the totals are then partial.

With these two measures the closing bar equals total revenue for the categories on show.

Put it together

  1. Add the visual and drag Product[Category] into Category.
  2. Drag Budget Start into Start Value and Budget Variance into Variance.
  3. In the Format pane, open Waterfall and set Start Label to "Budget" and End Label to "Actual".
  4. Open Sort & Grouping. Set Sort By to Absolute (High to Low) to lead with the biggest drivers, and set Max Categories to how many bars you want before the rest are grouped into "Other".
  5. Open Data Labels and set Display Units and Decimal Places.

Tips

  • Labels and tooltips use the Variance measure's own format string, so give it a currency format in the model to get "$" on every bar. Decimal Places always sets the precision.
  • Max Categories defaults to 10. Anything beyond it is summed into one "Other" bar, so the closing total stays correct.
  • Turn off Show End Total to hide the closing bar, or set Orientation to Horizontal when category names are long.
  • A blank start value for the current selection shows a message rather than a chart starting at zero. Check that the budget exists for the filters on the page.
From $1.49 / user / month · volume pricing from $29/mo

Billed through Microsoft AppSource


Category Chart
Tooltips
Cross-filtering
High Contrast