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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Sumx and Summerize is performing too slow in Matrix

Hello everyone i have created Matirx report which Looks like Below :

 

salmashaikh_0-1603981564351.png

All the columns  are measures with fixed value 0,50 ,100 ... I am maitainng RAG status . where 0 is red 50:Amber and 100 :green 

My total is : Total of Column / RAG  / Sites(Business Hirachy)

I am using SUMX with Summarization in My DAX which is as below : 

%ADH_RiskStatus =
VAR sumtbl =SUMMARIZE('Sites & Facilities','Sites & Facilities'[Document.SiteName] ,"RISK1",[ADH_RiskStatus])
VAR TotalRiskbySite= (SUMX(sumtbl,[RISK1]))
RETURN
(TotalRiskbySite ) /[ADH_SiteCount]
 
This logic is working very fine . but it is very slow in performance . I need help/suggestion to improve perfromance .

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

As SUMX is a iterator function, it is degrading the performance.

https://www.kasperonbi.com/tune-your-powerpivot-dax-query-dont-use-the-entire-table-in-a-filter-and-replace-sumx-if-possible/ 

https://powerpivotpro.com/2015/08/nested-sumx-or-dax-query/ 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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