Slow Power BI report: find the culprit before you fix it

Find the slow part before changing anything. Record one slow interaction in Performance Analyzer and read each visual's time split: DAX query, visual display and other. Copy the slowest visual's DAX query into DAX query view and time it. If the query is fast, look at the visual itself, then at capacity and network.

Get the project

Analysts · ·

The problem

A report takes too long to open, or a slicer makes it hang. You do not know if the cause is a visual, a DAX measure, the model, the data source, the capacity or the network. So you start changing things. This Pattern is for report authors and BI developers who need to find the one slow part first.

Steps

Four steps: find where it is slow, record one interaction in Performance Analyzer, read which part of the slowest visual is long, then change one thing and record again.

The order of the checks. Nothing gets changed until step 3 has an answer.

  1. Decide where it is slow. Ask who and when. Everyone or some users? Certain hours or days of the month? One region? One device or browser? Microsoft’s troubleshooting page turns these questions into a flowchart.

    • Report on a Premium or Fabric capacity: open the Fabric Capacity Metrics app and check whether the capacity often runs out of resources. If it does, manage or scale the capacity. If it does not, look at capacity activity during normal report use.
    • Report on shared capacity: capacity health cannot be monitored. If slowness follows a time pattern with many users, the page suggests moving the semantic model to Azure Analysis Services or a Premium capacity. If it follows a region, the data source is probably remote: look at architecture and gateway performance. If it hits only certain devices or browsers, open a support ticket.
    • Slow for everyone, all the time: go to step 2.
  2. Record one interaction in Performance Analyzer. In Power BI Desktop: Optimize ribbon, Performance Analyzer. In the service: open the report, select Edit, then View, then Performance Analyzer. Select Start recording, then Refresh visuals, or do the thing users complain about, such as changing a slicer. Select Stop.

    Each visual gets a duration in milliseconds, split into:

    • DAX query: from the visual sending the query to the model returning the result.
    • Direct query: for DirectQuery tables, the time for the external query to return.
    • Visual display: drawing the visual, including web images and geocoding.
    • Other: preparing queries, waiting for other visuals, background work.
    • Evaluated parameters (preview): time spent evaluating field parameters.
  3. Read the split of the slowest visual. One part is usually much larger than the rest.

    • DAX query is large: go to step 4.
    • Visual display is large: the query is not the cause. Look at the visual: its type, how much it draws, geocoding, images.
    • Other is large: this can be queueing. Most canvas and visual operations run one after another on a single UI thread, and the durations include time spent queued. Count how many visuals update together before blaming this one.
  4. Take the DAX query and time it alone. Expand the visual and select Copy query, or Run in DAX query view (Desktop). The service has no Run option: from the report select open data model, then DAX query view, and paste. On the web, DAX query view needs write permission on the semantic model and the workspace setting “User can edit data models in the Power BI service (preview)”. For tables in DirectQuery mode, the copied text also holds the translated SQL or KQL.

    A visual’s query is more verbose than needed; Microsoft says so, and suggests this Copilot prompt in DAX query view: Remove the VARs and TOPN and simplify this DAX query. A query of that shape looks like this. The names are invented.

    DEFINE
        VAR __DS0Core =
            SUMMARIZECOLUMNS(
                ROLLUPADDISSUBTOTAL('Customer'[Customer Name], "IsGrandTotalRowTotal"),
                "TotalSales", 'Sales'[Total Sales],
                "MarginPct", 'Sales'[Margin Pct]
            )
        VAR __DS0PrimaryWindowed =
            TOPN(501, __DS0Core, [IsGrandTotalRowTotal], 0, [TotalSales], 0, 'Customer'[Customer Name], 1)
    EVALUATE
        __DS0PrimaryWindowed
    ORDER BY [IsGrandTotalRowTotal] DESC, [TotalSales] DESC, 'Customer'[Customer Name]
    

    A simplified version to compare against. It drops the grand-total row and the 501-row limit, so it is a test of the calculation, not a replacement for the visual.

    EVALUATE
    SUMMARIZECOLUMNS(
        'Customer'[Customer Name],
        "TotalSales", 'Sales'[Total Sales],
        "MarginPct", 'Sales'[Margin Pct]
    )
    ORDER BY [TotalSales] DESC
    

    Run each, note the time, then test measure by measure. Check that the numbers still match before you trust the faster one. Microsoft’s DAX query view page describes DEFINE MEASURE, which lets you change a measure inside the query without touching the model.

  5. Rank all the visuals from the export. Select Export in Performance Analyzer to save a .json file. Its structure is a list of events, documented in Microsoft’s powerbi-desktop-samples repository. The project below reads it and prints the slowest visuals with their query, drawing and remaining time.

  6. DirectQuery only: look at the source queries. Microsoft’s DirectQuery page says Power BI Desktop writes session traces to FlightRecorderCurrent.trc. Open it from File, Options and settings, Options, Diagnostics, Open crash dump/traces folder, then up one level to AnalysisServicesWorkspaces, the active workspace folder, then Data. Open the file in SQL Server Profiler. Keep sessions to about 10 seconds of targeted actions.

  7. Change one thing, record the same interaction again, keep both numbers. Microsoft recommends retesting performance after significant changes to a report or its semantic model. Without a first number you cannot tell whether the change helped.

The project

Get the project

slow-report-triage is a small Python script and a checklist. The script reads a Performance Analyzer export, checks it against the documented structure, ranks the visual updates, prints the slowest visual’s DAX query, and compares two exports. It uses only the standard library and runs on two invented exports.

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python triage.py samples/slow_slicer_export.json && python -m pytest -v

What the recorded run showed (full output in RUN_LOG.txt inside the project):

  • In the first sample, Top Customers is the slowest visual at 3140 ms, 2990 ms of it in the query.
  • Store Map spends 1550 ms drawing and 285 ms in the query.
  • Total Sales has a 180 ms query and a 30 ms draw, but 1060 ms under rest. That is the shape of a queued visual.
  • The comparison with the second sample shows Top Customers going from 3140 to 570 ms and every other visual unchanged.
  • 20 tests passed.

All numbers come from invented data. They show what the script prints, not how a real report behaves. The checklist in the project repeats steps 1 to 7.

Terminal output of the triage script on invented data.

Real output of python triage.py on a synthetic export, 2026-11-29. The data is invented; it is not a measurement of any report.

Copy this prompt

When Performance Analyzer points to a slow DAX query, paste that query and this prompt into your assistant’s chat. Ask it to explain the calculation and suggest a simpler equivalent. Run both versions in Power BI afterwards to compare the numbers and timings yourself.

This is the DAX query copied from my slowest visual in Performance Analyzer:
<paste the query>
Explain what it computes, which measures are probably expensive and why,
and give a simplified equivalent query I can run in DAX query view to compare timings.
Do not change the results. Tell me how to verify that the numbers match.
Tell me what you cannot know without the model: relationships, storage mode, cardinality.

Check the answer for three things: the simplified query returns the same numbers on a test filter, it names which part of the original it dropped, and it does not claim a speed-up it has not measured.

Test result

The script ranked visuals from synthetic Performance Analyzer exports by duration and separated query time from rendering. Both sample files are included for reproducing the comparison.

Limits

  • Durations include queueing. Most canvas and visual operations run on one UI thread, so a slow visual raises the time of the others, and Other can be waiting, not work.
  • Desktop is not the service. Microsoft lists what differs: data volume, concurrent users, storage mode, gateway, capacity, query caching, query parallelization, active connections and row-level security. Record in the web editor too.
  • It does not monitor PPU or capacity. Microsoft states that Performance Analyzer cannot be used to monitor Premium Per User activities or capacity. Use the Capacity Metrics app for capacity. Microsoft’s pages also say the Premium per-capacity (P) SKUs are being retired in favour of Fabric (F) capacity.
  • The cause is often the model. Microsoft’s auditing page says the root cause of report slowness is often the design of the data model, so optimising visuals can miss it.
  • One change at a time. Without a baseline number and one change per run, nothing proves the fix.
  • Many DirectQuery visuals. Each visual triggers queries to the source, and Microsoft recommends limiting visuals per page. The service enforces a 4-minute timeout per query. Microsoft’s guide aims for common visual refreshes under 5 seconds and says more than 30 seconds degrades usability.
  • Export format. The script follows Microsoft’s documented structure. The pane’s categories and the export’s events are not the same thing, so its columns can differ from the pane’s. The format document says timestamps can be misaligned across processes and machines.
  • Not covered: report visuals’ formatting, model design, refresh time, and Power Query. Microsoft’s Query Diagnostics page covers Power Query.

Sources

Author

Rodrigo Lombana Reina, data engineer. Personal opinions. Checked against the documentation on 2026-11-29.

Questions

What is Performance Analyzer in Power BI?

Performance Analyzer is a pane in Power BI Desktop, and in the report editor in the Power BI service, that records how long each visual takes to load after each interaction. It splits the time into DAX query, Direct query, visual display and other, and can export the log as a .json file. Microsoft documents it as available with no preview label (checked 2026-11-29).

How do I find which visual makes my Power BI report slow?

Open Performance Analyzer, select Start recording, then refresh the visuals or change a slicer, and read the Duration column. The visual with the longest total is the first suspect. Expand it to see whether the time sits in the DAX query, in drawing the visual, or in Other. Fix that part first and record again.

How do I get the DAX query of a slow Power BI visual?

Expand the visual in Performance Analyzer and select Copy query, or Run in DAX query view in Power BI Desktop. The service has no Run option: copy the query, open the data model from the report and paste it into DAX query view there. Microsoft notes that web DAX query view needs a workspace setting still labelled preview.

Why does Performance Analyzer show a long time for a visual that is not slow?

Most canvas and visual operations in Power BI run one after another on a single user interface thread, and the reported durations include time spent queued while other operations finish. A cheap visual can therefore show a long total when many visuals update together. Read the DAX query time first, then count what updates at once.

Why is my report fast in Power BI Desktop and slow in the service?

Performance Analyzer in Desktop runs on your machine, which differs from the service in data volume, concurrent users, storage mode, gateway, capacity, query caching, query parallelization, connections and row-level security. Microsoft lists these differences on its report-level auditing page. Record in the web editor too, and check the capacity if it is Premium or Fabric.

Can I use Performance Analyzer in the Power BI service?

Yes, when you edit a report: select Edit, then the View menu, then Performance Analyzer. Microsoft's September 2025 Power BI update lists it as available in the web editing experience. It cannot be used to monitor Premium Per User (PPU) activities or capacity, and the Run in DAX query view option is Desktop only.

Performance Analyzer, Capacity Metrics app or SQL Server Profiler: which should I use?

Use Performance Analyzer first, because it shows which visual and which part is slow. Use the Fabric Capacity Metrics app when the report sits on a Premium or Fabric capacity and you suspect overload. Use SQL Server Profiler when the source is SQL Server or Analysis Services and you need to see the queries. Microsoft documents all three.

Portrait of Rodrigo Lombana Reina

Rodrigo Lombana Reina, data engineer. Data problems solved, step by step.

About Rodrigo · The opinions and texts on this site are my own.

My LinkedIn profile