Ravindra BagaleCourses & study guides मराठी Track your progress

27. Performance Tips

27.2 Performance Analyzer

Start with a problem

Ravindra needs evidence of which visual is slow.

Explain simply

Performance Analyzer records time per visual: DAX query, visual display, other.

Show the data

Visual DAX query (ms) Visual display (ms) Other (ms) Total (ms)
Sales card 40 15 20 75
City bar chart 120 60 30 210
Store matrix (all columns) 2,600 900 150 3,650
Category donut 90 40 25 155
Slicer City 20 10 15 45

About this data: This table uses columns: Visual, DAX query (ms), Visual display (ms), Other (ms), Total (ms). This table uses columns: Visual, Total time (ms). This table uses columns: Visual, Before (ms), After (ms), Fix. Values shown are the lesson examples already on this page (not a new dataset).

Fictional sample data. Practice file: performance_analyzer_sample.csv (source: src/practice/).

Demonstrate

  1. Optimize › Performance analyzer › Start recording.
  2. Click Refresh visuals.
  3. Stop; expand the Store matrix.
  4. Copy query to DAX query view to inspect.

Show the result

Performance Analyzer pane, sample layout with fictional data

Your result should look like this (fictional sample):

Visual DAX query (ms) Visual display (ms) Other (ms) Total (ms)
Sales card 40 15 20 75
City bar chart 120 60 30 210
Store matrix (all columns) 2,600 900 150 3,650
Category donut 90 40 25 155
Slicer City 20 10 15 45

Explain what happened

DAX query time is the model work; visual display is rendering; other is waiting.

Explore further

  • Export results as JSON for comparison.

Detailed reference for this lesson:

Performance Analyzer in Power BI with example — in 30 seconds

What: Performance Analyzer records how long each visual takes, split into DAX query, visual display and other.

Why: The page takes 40 seconds to open. You must know which visual is slow before you fix anything.

Tiny example: One table visual takes 31,200 ms of the 40,000 ms. Fix that visual first.

First look at the data (before → after):

Performance Analyzer in Power BI with example: before and after tables, fictional Blinkit Maharashtra data

Same before / after tables as text

Before — Slow page (fictional timings, total 40,000 ms)

Visual Total time (ms)
Card: Total Sales 180
Bar: Sales by city 420
Table: all orders (5 lakh rows, 12 columns) 31,200
Map: stores 8,200

Formula / click path

View › Performance Analyzer › Start recording › Refresh visuals
Sort by Total time · expand the slowest visual · Copy query

After — After fixing the two slowest visuals

Visual Before (ms) After (ms) Fix
Table: all orders 31,200 900 Top 100 rows, 5 columns, full detail via drill through
Map: stores 8,200 2,100 Latitude and longitude instead of address text
Page total 40,000 3,600 Card and bar unchanged (180 + 420)

Do it step by step:

  1. Click View › Performance Analyzer.
  2. Click Start recording. Then click Refresh visuals.
  3. Sort by Total time. Expand the slowest visual.
  4. Read the parts: DAX query, Visual display and Other.
  5. If DAX query is big, click Copy query and test it in DAX query view.
  6. Fix one visual. Record again. Compare the numbers.

What appears on screen after these steps — sample layout, fictional data

What you should see on screen after the steps (sample layout — fictional data, not a Microsoft screenshot).

  1. Optimize › Performance analyzer (in older versions: View › Performance analyzer).
  2. Click Start recording, then Refresh visuals (or interact with slicers).
  3. Each visual is listed with its duration in milliseconds, split into:
Part Meaning
DAX query Time for the engine to run the query – high values point to the model or DAX
Visual display Time to draw the visual – high for visuals with many data points or custom visuals
Other Waiting time (e.g. for other visuals) and preparation work
Direct query (DirectQuery only) Time spent waiting for the source database
  1. Expand a visual and click Copy query to analyse the DAX in DAX query view or in the free community tool DAX Studio.
  2. Export saves the results as a JSON file.

Test fairly

Friends, test from a blank page first (so caches are not already warm), then switch to the page you want to measure. Compare before/after timings for each change you make.

Performance Analyzer ha doctor sarkha aahe – aadhi nidan, mag ilaj.

Ravindra Bagale's Tip

A common Performance Analyzer mistake is recording once with a warm cache and trusting the numbers. Click Refresh visuals while recording, test a few times, and look at DAX query vs Visual display vs Other to know whether the problem is the model, the visual or too many visuals. Don't worry – after doing it two or three times, it becomes a habit.

Fix common mistakes

Wrong result Reason Correction
Times very high first run only Cache cold Refresh visuals twice
Only one visual listed Started after load Start then Refresh visuals
Optimised display when DAX is slow Misread columns Fix the largest part

Practise independently

Practice task

Which part of the matrix time is largest?

Hints
  • 2,600 vs 900.
Solution

DAX query (2,600 ms).

Think like a professional

Quote numbers before/after – it proves impact.

Ravi Sir's Cards for this lesson

मराठी cards