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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Why is the total duration for DAX query vastly different from what is shown under DAX Studio ?

@v-shex-msft


So I am new to optimizing Power BI , and what I learnt from online is to turn on the performance analyzer and look for DAX queries taking more than 120 ms to run.


Here, I have 67 visuals in one page , I ran the performance analyzer
sort it in DESC order of DAX query duration , and found 1st visual whose DAX query took 847 ms to run.

Akshay_Kinge_0-1616398855639.png


I copied it to DAX studio and there it ran for 64 ms.

Akshay_Kinge_1-1616398893777.png

What does this mean ? Is the DAX query already fast as it is and due to may small RAM of 4GB that 64ms takes 847ms ? Or do I need to do further optimization?

I also know that SE queries above 20 is an indicator that DAX query needs to be optimized, but this 12.

Any help would be greatful as I am completely new to Power BI Optimization.

3 REPLIES 3
selimovd
Super User
Super User

Hello @Anonymous ,

 

probably the query is cashed.

When you do the Query in DAX studio, always chose the "Clear Cache then Run" option:

10.png

 

This should give you a more realistic time of the query.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Anonymous
Not applicable

Yes I have done this and still got this issue.

Same issue. Any explanations for this?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.