Performance Analyzer
Locate the bottleneck before editing a measure
Performance Analyzer measures the experience of loading report visuals, not just the DAX expression. Record a repeatable user action and identify which visual and which stage contribute to the delay. Start with the Chapter 33 local wide model; its 12 sales rows total 360 in revenue. No native timing has been measured.
Capture a reproducible interaction
In Power BI Desktop open Optimize > Performance Analyzer, start recording, refresh visuals or apply a known slicer selection, then stop. Export the log and note report page, selection, visual type, model build, and the action. DAX query time includes waiting for the semantic model response; Direct query is a separate reported component where applicable. Visual display covers rendering; Other can include preparation, background work and queuing. Durations may overlap or include waiting. Do not sum unrelated visual durations as page wall time.
Example 1 — isolate a query from its visual
Set up Product[Category] in a table and add a revenue measure. Copy the actual query from Performance Analyzer; keep that original artifact. The following smaller query is a teaching probe, not the captured visual query.
DEFINE MEASURE Sales[Revenue] = SUMX(Sales, Sales[Quantity] * Sales[UnitPrice])EVALUATESUMMARIZECOLUMNS(Product[Category], "Revenue", [Revenue])ORDER BY Product[Category]Expected: A 60, B 120, C 180. Compare the original result, including subtotal and filters, before treating a simplified query as equivalent. Run in DAX Query View or approved DAX Studio. Native NOT RUN.
Example 2 — interpret a hypothetical trace
Teaching-only scenario (not measured): visual X has DAX query 80 ms, display 700 ms and Other 30 ms; Y has query 600 ms, display 25 ms and Other 40 ms. X suggests investigating visual complexity or external image retrieval; Y suggests inspecting its query and model. A third visual waiting on X could have high Other without its own slow calculation. Change one factor, keep selections and output constant, and capture again. Report page latency separately.
Avoid misleading diagnosis
A faster copied query does not prove a faster page; it excludes rendering and may use a different cache. Do not remove useful details merely to make a chart quicker. Check source round trips and gateway/capacity contention when relevant; this Import lab has no source query during normal measure evaluation. Do not treat clearing the analyzer log as clearing engine cache.
Practice and sources
Record the exact procedure for comparing a table and chart with identical A+B totals. Explain which diagnostic to inspect if display dominates. Use labs/dax-performance/worksheet.md; check the admin solution after attempting. Sources: https://learn.microsoft.com/en-us/power-bi/create-reports/performance-analyzer ; https://learn.microsoft.com/en-us/power-bi/transform-model/dax-query-view