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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors