Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Line by Line check of DAX formula

Dear team,

 

is there a way to check evaluation result of a complex DAX formula line-by-line?

 

For example, I'm troubleshooting my formula below, which for some reason doesn't work. To find out where the bug is I want to know what output do I have after each step.

 

Like I click on VAR Items (for example) and it shows me that this variable is a table with a list of brokers.

 

Then I click on VAR ItemsWithRank and it shows me that this is a table with List of brokers, brokerage fees per broker and rank of the broker depending on the brokerage fee.

 

Any way to do that?

 

image.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

You could make a calcualted table using your first 5 VAR and in the return just start with returning Items, then switch it to ItemsWithValue, etc.  That way you can see what the actual table output is.  You could also use DAX Studio to see the output of the table expressions.

https://www.sqlbi.com/tools/dax-studio/

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

@Anonymous 

You could make a calcualted table using your first 5 VAR and in the return just start with returning Items, then switch it to ItemsWithValue, etc.  That way you can see what the actual table output is.  You could also use DAX Studio to see the output of the table expressions.

https://www.sqlbi.com/tools/dax-studio/

Anonymous
Not applicable

Guys,

 

thank you for your prompt replies!

Both Methods work more or less though we do need a debugger..

 

Here is another nice link which I was able to google after your ideas

https://www.youtube.com/watch?v=9SV2VnYbgg4

 

Cheers,

Misha

Cmcmahan
Resident Rockstar
Resident Rockstar

I usually just copy/paste each part of the expression and set it up as a new measure, and then check the result of each of those measures.

 

As far as I'm aware, Power BI doesn't have a debugging mode for DAX expressions.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors