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
mimi
Advocate I
Advocate I

Cumulative Total Formula is very Slow

Hi

 

The formula of Running Total or Cumulative Total that is inserted in measures is very slow. Very Slow especially for reports with more than 10K rows. Does anyone know of a formula that is faster than this

 

These are following formulas that I have used and proved to be slow

 

Cumulative = if(not(ISBLANK([_Total GP]));CALCULATE([_Total GP];FILTER(all(Query1[ItemNO]);sum(Query1[SalesGP]) <=[_Total GP])))
 
or 
_Top N = COUNTROWS(TOPN)
([_Ranking]; all(Query1[ItemNO]);[_Total GP]))
 
(where
_Ranking = rankx(all(Query1[ItemNO]);[_Total GP]) and 
_Total GP = sum(Query1[SalesGP]))
2 REPLIES 2
christianfcbmx
Post Patron
Post Patron

try to build it with a quick measure (comulative)....and see how it behaves

Hi

 

Thanks for replying. I have tried using Running Total Quick Measure. Same problem. very slow

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.