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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

A Very Strange Performance Issue

Hello all,

 

The measure called Final Measure below works very slowly on visuals we use with "Drill-Down" and "Matrix". In the performance results we make in PowerBI (visuals used with similar size measures), it can reach 25 seconds at some points. 

 

My Connection type is Live Connection trough Analysis Services

 

I have shared Final Measure and other important measures that make up it. I need to imrpove the performance results of the querys

Because it has 1.5Million Rows of Data and it gives the memory limit errors.

 

 

Final Measure:=IF (SELECTEDVALUE ( Dates[Is Month] ) = TRUE ()
 || [Selected Metric] = "CC",IF (SELECTEDVALUE ( Customer[Cust:Key] ) <> "44/05/AA/2208909",IF (ISFILTERED ( Category[Category Name] ) = TRUE (),
            [Sub Measure 1],
            [Sub Measure 1] 
               - CALCULATE (                    
[Sub Measure 1],                    
Category[Category Name] = "X Group"                
)        
),        
[Similar to Sub Measure 1]    
),    
[Similar to Sub Measure 1])
Sub Measure 1 :=SWITCH (TRUE (),    
[Selected Metric] = "Actual",IF (            
[Search Filtered Business] = TRUE (),            
[Sub Measure 2]                
+ CALCULATE (                    
[Sub Measure 2],                    
Category[Category Name] = "X Group",ALL ( Category )               
 ),           
 [Sub Measure 2]       
 ),    
[Selected Metric] = "CC",IF (            
[Search Filtered Business] = TRUE (),           
 [Similar to Sub Measure 2]               
 + CALCULATE (                   
 [Similar to Sub Measure 2],                   
 Category[Category Name] = "X Group",ALL ( Category )               
 ),
           
 [Similar to Sub Measure 2]       
 ),    
[Selected Metric] = "Volume",IF (           
 [Search Filtered Business] = TRUE (),           
 [Similar to Sub Measure 2]                
+ CALCULATE (                   
 [Similar to Sub Measure 2],                   
 Category[Category Name] = "X Group",ALL ( Category )               
 ),            
[Similar to Sub Measure 2]       
 ),BLANK ())
Sub Measure 2:= SWITCH(TRUE(),    
[Selected Metric] = "YTD",TOTALYTD(SUM(Sales_Summary[Actual]),'Dates'[Date])   
 ,    
[Selected Metric] = "MTD",TOTALMTD(SUM(Sales_Summary[Actual]),'Dates'[Date])   
 ,BLANK())

 

 

İts very Critical and it hapenned after I used this 3 daxes. Let me know if you have any questions to solve this

 

Thank you all for your time.

 

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 
There are no exact solutions for optimization, you might want to follow the techniques to improve performance.

Improve Power BI Performance by Optimizing DAX | MAQ Software

 

Paul Zheng _ Community Support Team

Greg_Deckler
Community Champion
Community Champion

@Anonymous - DAX Performance optimization is a deep subject. Would need to have a better sense of your data and how the measures are being used. If you can share PBIX could take a closer look. If you can't do that, here is a series I wrote on performance optimization in DAX:



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.