Skip to main content
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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

@Antmkjr , 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

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors