Study FAQ
How do I identify the part of a DAX measure that makes a visual slow?
Also asked as 2
- How can I isolate expensive DAX without rewriting the whole model?
- What should I measure before optimizing a complex Power BI measure?
Answer
Capture the slow visual's query, then compare the complex measure with a simple base aggregation under the same filters. If the simple measure is fast, restore the original calculation in stages to identify the expression that changes the timing.
Record a repeatable baseline: report interaction, filter context, security identity, storage mode, elapsed time, and cold or repeated execution. Inspect likely sources of extra work such as repeated expressions, large iterator inputs, broad table filters, unnecessary detail, and context transitions.
Use variables to expose intermediate stages when they clarify the calculation. Test smaller scoped tables and narrower filter arguments where they preserve the rule. A variable or a shorter expression isn't a performance guarantee.
For every rewrite, verify one entity, multiple entities, empty periods, subtotals, and the grand total. A faster result with different context or total behavior isn't the same calculation. If several unrelated measures are slow, inspect model, source, or capacity causes rather than assuming they all need DAX rewrites.
Repeat the original visual after the change and compare like-for-like timings. Save the baseline and result so another engineer can reproduce the decision.
Performance Analyzer query capture. DAX filter-argument guidance. DAX variables.
Full explanation
DP-600: Optimizing and Troubleshooting Enterprise-Scale Power BI Semantic Models
Study guide · DP-600
Read the full explanation