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
DataSciWannabe
Frequent Visitor

Slow SumX - How to Make Faster

I am using nested sumx to get the results of a count of a seperate measure, I was wondering if anyone had any ideas of how to speed it up? I had to use this to get the numbers to tie out.

 

sumx(values(Data[Name]),sumx(values('Data'[Item number]), if(AND([Price_Chg] > 0.02,[Price_Chg] < 0.03),1,0) ))

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @DataSciWannabe ,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.)

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @DataSciWannabe ,

 

It seems that you use two SUMX functions, so the performance should be bad.

 

I'm afraid that you could try calculated table.

 

In addition, you could refer to this similar thread.

 

If you still need help, please share your data sample so that I could have a test on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DataSciWannabe
Frequent Visitor

Also note the idea is to sum the total number of rows where the result of the measure which calculates price change falls within those ranges

anyone?

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.