Articles · Business intelligence · · 8 min read
Why a Power BI Measure Is Wrong and Nobody Noticed
A measure that returns a plausible number fails silently. Where Power BI measures go wrong, why the report can't catch it, and how to make them testable.
By Matthieu de La Mettrie · Founder, Skopura
A broken measure announces itself. The visual errors out, the card shows blank, someone raises a ticket before lunch. A wrong measure does none of that. It returns a number with the right sign, the right order of magnitude and the right currency symbol, and it keeps returning one every morning while the decision it feeds drifts away from reality.
The interesting question is not how measures become wrong. That part is mundane — a relationship changes, a filter removal is broader than intended, a denominator picks up rows nobody meant to include. The interesting question is why nothing in the delivery path is positioned to notice.
What does a wrong measure actually look like?
It looks like a number. That is the whole problem. A report consumer has no independent path to the same figure; if they did, they would not be opening the report. The value arrives as a conclusion rather than a claim, and conclusions do not come with error bars.
The failure modes that survive longest share a shape: the measure is correct at one grain and wrong at another. It reconciles on the page where it was built and diverges on the page where someone else reused it. Nobody compares the two pages, because they answer different questions and live in different sections.
| Loud failure | Silent failure | |
|---|---|---|
| Symptom | Visual errors, blank card, refresh fails | Plausible number of the expected shape |
| Who notices | Anyone who opens the report | Someone with an independent source, by accident |
| Time to detection | Immediate | Unbounded |
| What catches it | The report itself | A reconciliation outside the report |
| Cost of delay | Lost reporting window | Decisions already taken on the number |
Where do measures go wrong without complaining?
Several categories recur, and each one produces a number rather than an error.
Additivity assumptions. Headcount, stock on hand, account balances and open pipeline are semi-additive: they sum across entities and not across time. A measure written as a plain SUM reconciles perfectly in a monthly view and silently triples the figure when a user expands to a quarter. The visual does not know the difference between a flow and a stock.
Filter removal that is broader than intended. A share-of-total measure needs a denominator, and the denominator is defined by what you choose to remove. REMOVEFILTERS on the whole table removes the product filter you wanted gone and the region filter you did not. On the page where the measure was authored there is no region slicer, so the bug is invisible. On the page where someone reuses it, there is.
Blank versus zero. Absent rows and zero-valued rows are different facts. An average that divides by a count of fact rows excludes the periods with no activity; an average that divides by a count of calendar days includes them. Both are defensible. Only one matches what the heading on the card claims, and the heading is rarely specific enough to adjudicate.
Relationship direction and cardinality. A bridge table that quietly becomes many-to-many fans the fact rows out. The total rises, nobody has a prior expectation for the total, and the new number becomes the baseline.
Role-playing dates. Order date, ship date and invoice date are three relationships to one calendar, and only one is active. A measure that omits USERELATIONSHIP returns a trend — just not the trend in the title.
Time intelligence over an incomplete calendar. Period-over-period functions assume a contiguous date table. Gaps produce comparisons against the wrong anchor period rather than an error.
Why doesn’t the report catch it?
Because the report is the thing being tested. Opening a dashboard to verify a dashboard is a closed loop. Detection requires a second computation of the same quantity, derived by a different route, compared on a schedule.
That second route is usually SQL against the warehouse. The point is not that SQL is more trustworthy — it is that the two paths fail differently. A relationship misconfiguration in the semantic model does not exist in the SQL; a join error in the SQL does not exist in the model. Agreement between them is weak evidence that both are right and strong evidence that neither is wrong in the same way.
What should the test assert?
Not values. Values change with every refresh, and a test that needs updating every morning gets disabled. Test invariants — properties that hold regardless of what the data says.
Useful invariants include: the measure evaluated at the top level equals the sum of the measure evaluated across each member of its natural dimension; a share measure sums to one across a complete partition of the population; a semi-additive measure over two adjacent months does not exceed the larger of the two; a measure filtered to a non-existent key returns blank rather than the grand total; the measure under an applied security role equals the measure under an equivalent explicit filter.
That last one matters more than it looks. Row-level security filters a model’s data by who is asking, and measures that remove filters to build denominators interact with that filter in ways nobody specifies up front. A share-of-total that means “share of everything” to an administrator and “share of my region” to a regional manager may be exactly right or exactly wrong — but it should be a decision, not an emergent property.
// Does the total equal the sum of the parts?
// Any non-zero Delta row is a defect, whatever the data says.
EVALUATE
VAR ByRegion =
SUMMARIZECOLUMNS (
'Region'[RegionName],
"Parts", [Net Revenue]
)
VAR PartsTotal = SUMX ( ByRegion, [Parts] )
VAR GrandTotal = CALCULATE ( [Net Revenue], REMOVEFILTERS ( 'Region' ) )
RETURN
ROW (
"PartsTotal", PartsTotal,
"GrandTotal", GrandTotal,
"Delta", GrandTotal - PartsTotal
)Queries like this run against the published semantic model through the XMLA endpoint, which means they test what users actually hit rather than what was in the developer’s file. Put them in the deployment pipeline, fail the release on a non-zero delta, and the class of error that previously had unbounded detection time now has a detection time measured in minutes.
Which measures deserve this treatment?
Not all of them. Hardening every measure in a large model is a tax that buys little, because most measures are plain additive sums over a single fact table with no filter manipulation, and those fail loudly or not at all.
Plain additive aggregate: rely on source-side tests, skip the model test.
What about the duplicates?
The second-order problem is two measures that nearly agree. Someone needed revenue excluding intercompany, built it next to the existing revenue measure, and now the model offers both with names distinguishable only by a suffix. Neither is wrong. The report that mixes them is.
A semantic layer centralises metric definitions so separate reports agree — but only if the layer is curated. Near-duplicates defeat the whole purpose, because they relocate the ambiguity from the reports into the model where it is harder to see. Make duplicates visible: list the measures that are not referenced by any report, the measures whose descriptions are empty, and the pairs whose names differ by a single token. Then delete or merge, with a deprecation window rather than a surprise.
What does good look like?
Measures that carry a written statement of grain, additivity and filter behaviour. A short set of invariant queries that run on every deployment against the published model. An independent SQL reconciliation for the handful of figures that leave the building. A standing habit of asking, when a number looks reasonable, who else computed it and whether they agreed.
None of that prevents a measure from being wrong. It shortens the interval between being wrong and knowing it, which is the only variable you actually control.
power-bi · dax · semantic-model · data-quality
Share on LinkedIn ↗Work with Skopura
Facing this bottleneck in your own estate?
Skopura builds production-grade lakehouse pipelines, evaluation harnesses, and provides fractional data leadership. Thirty-minute call, no deck.