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
cdawidow
Helper III
Helper III

OPTIMIZE SUMX FORMULA

Hi guys,  I have the following formula :  

TOP SALES = VAR X = FILTER(VALUES(CUSTOMERS[CNAME]), SCORE TOTAL>=30) RETURN SUMX(X,[CUSTOMER AVERAGE SPEND])

 

Essentially I have calculated a score based on multiple factors ( SCORE TOTAL) and broken them down in desired groups.  

TOP : SCORE TOTAL >=30

STRONG: SCORE TOTAL >=20 <30

POOR : SCORE TOTAL <20

 

Is there any other methods out there apart from SUMX (which I am using) to ensure faster measure performance?  Currently, the formula I am using is taking a long time to run.  Any suggestions would be appreciated!

2 REPLIES 2
Anonymous
Not applicable

From your formula one does not know how things are calculated and what the model looks like. Without this information nobody can give you any better version of your measure.

amitchandak
Super User
Super User

@cdawidow , what you are doing is correct. Another way is bucketing/ binning. Little bit tricky. You need an independent table to

 

refer if a blog or video can help

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

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.

Top Solution Authors