cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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
Microsoft
Microsoft

Hi @salmashaikh ,

 

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-... 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors