Stop 14 · Security, Performance & GovernanceTopics · 6/9

DAX Studio Basics

Part of the Power BI Roadmap

In short

Power BI Desktop tells you a visual is slow. DAX Studio tells you why. It is a free, community-built tool that almost every serious Power BI developer keeps open while tuning models.

DAX Studio is a free external tool for writing and timing DAX queries and inspecting model size with VertiPaq Analyzer, widely used for troubleshooting.

The jaadu in a doctor's coat listens with a stethoscope to a large glowing cube resting on a clinic examination bed.

Think of it like this

The doctor's check-up room

Desktop is your daily life, where you notice you feel tired. DAX Studio is the clinic: the doctor runs tests, checks blood reports and finds the exact cause. You write a query, it measures what the engine did and shows which tables and columns weigh the most.

Watch it happen

A tuning session in DAX Studio

Connect
Write query
Server Timings
VertiPaq Analyzer
Fix and rerun

1/5Launch it from the External Tools ribbon in Desktop. It connects to your open model automatically.

The big ideas

What you need to know

EVALUATE returns a table

Every DAX query starts with EVALUATE and returns a table. It's the same language as measures, used as a query.

Two engines

The storage engine scans compressed data quickly. The formula engine does complex logic. Lots of formula engine time often means a measure needs rewriting.

Clear Cache first

Clear the cache before timing, so you measure a cold run rather than a lucky cached result.

VertiPaq Analyzer

View Metrics lists every column's size and unique values. It is the fastest way to plan model size reductions.

See it in code

Walk through the code

dax
1DEFINE2    MEASURE Sales[Total Sales] = SUM ( Sales[Amount] )3    MEASURE Sales[Sales LY] =4        CALCULATE ( [Total Sales], SAMEPERIODLASTYEAR ( 'Date'[Date] ) )5EVALUATE6SUMMARIZECOLUMNS (7    'Date'[Year],8    Region[Region],9    "Sales", [Total Sales],10    "Sales LY", [Sales LY]11)12ORDER BY 'Date'[Year], Region[Region]

1/4Query-scoped measures. Edit them freely to compare versions.

A query you can run in DAX Studio. DEFINE lets you test a new version of a measure without changing the model.

Save yourself the pain

Common mistakes

Oops

Timing a query twice without clearing the cache and celebrating the faster second run.

Do this instead

The second run used the cache. Clear Cache each time for fair comparisons.

Oops

Downloading DAX Studio from a random file-sharing site.

Do this instead

Get it from the official daxstudio.org site, which links to its open-source releases.

Your mission

Your first DAX Studio session

~30 min

Quick check

What does every DAX query you run in DAX Studio need?

Go deeper

  1. 1Install DAX Studio and connect it to an open .pbix.
  2. 2Run the VertiPaq Analyzer metrics to find your largest columns.
  3. 3Paste a slow visual's query from Performance Analyzer and check server timings.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge