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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Antmkjr
Post Patron
Post Patron

Simplify Cumulative Formula

https://drive.google.com/file/d/1K08wErvFMTg_SoqWxZWO4x0WECyD99Q8/view?usp=sharing

 

AnuTomy_0-1610682577399.png

In the attached file, Final to Collect (4) is arrived after calculating 1,2,3 steps.
Is there anyway to simplify this calculation,
The basic logic is as below:

From the To Collect need to subtract Unapplied Receipts

Eg A :
In this case Unapplied Receipts < 2021 January To Collect (15 < 25 )
For 2021 January , Final To Collect =To Collect -Unapplied Receipts = 25-15 = 10
For 2021 February, Final To Collect= To Collect=3
For 2021 March, Final To Collect= To Collect=40

Eg B :
Suppose Unapplied Receipts was 30
In this case Unapplied Receipts > 2021 January To Collect (30 > 25 )
For 2021 January , Final To Collect =To Collect -Unapplied Receipts = 25-30= Since 30 is not fully subtractable from 25, 5 will be subtracted from 2021 February
therefore, for 2021 January ,Final To Collect = 0

For 2021 February, Final To Collect= To Collect -Unapplied Receipts=3 -5=
But since 5 is not fully subtractable from 3, 2 will be subtracted in March
therefore, for 2021 February, Final To Collect = 0

For 2021 March, Final To Collect= To Collect -Unapplied Receipts=40-2
Final To Collect = 40-2 = 38

For 2021 April, Final To Collect = To Collect …and so on…

My question is, to perform this logic, current I am performing steps 1,2, 3,4 as shown in the picture.
Is there any easier way of doing this?

3 REPLIES 3
wdx223_Daniel
Super User
Super User

@Antmkjr 

wdx223_Daniel_0-1611017790754.png

 

Can you attach pbix

 

@Antmkjr  FYI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.