Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Performance of Cumulative Function 


In the attached pbix, I am trying to calculate Cumulative Final To Collect.


There are two issues


CALCULATE([Final To Collect]+[Total Project Collections],FILTER ( ALLSELECTED( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ))
is giving incorrect results
2) The performance is bad if I use this for a large dataset
Expected result
Oct 2020   43.5 (=35+8.5)
Nov 2020  53.5  (= 43.5+10)
Dec 2020   63.5  (=53.5+10_
And so on...(Total project collections should be cumulated with Final To Collect)




Super User
Super User

@AnuTomy , Final To Collect is creating a problem. Try to avoid comparison or cumulative and normal measures. see if you can get that without cumulative 

 min(SUM('To Collect'[To Collect]), [Cumulative Net to Collect] )


There are quite a few cumulative  in report and then they used in another cumulative , causing the slowness

Power BI Features || Datamarts: || Field Parameters :
Time Intelligence Decoded : || 50+Power Query List Functions : Learn Power Query List
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Helper V
Helper V

@mahoneypat Similar issue to that of the yesterday's. But this time with another formula, could you please suggest how to improve performance

Helpful resources

September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors