Forum Discussion

BryanLy's avatar
BryanLy
Frequent Visitor
6 years ago

Cumulative Surplus/Deficit Monthly

Hi all,

I hope you are well. 

I am struggling with a measure now to get the right cumulative surplus/deficit each month.

 

I have correct measures for Incomes & Expenses respectively.

The calculation for surplus/deficit is Incomes - Expenses, thus I have a new measure created below:

 

Cumulative Surplus/Deficit - Actual =  [Cumulative Incomes - Actual] - [Cumulative Expenses - Actual]
 
However, the measure above produces the amount of each month, not a cumulative amount. I wanted to use Calculate(Sum()) but it is not a column.
 
Currently, the results are like below:
 
Jul:  -10
Aug: 20
Sep: -35
 
My expected/desired results should be:
 
Jul: -10
Aug: 10
Sep: -25
 
I am running out of idea and I really want to get this done. I hope someone can help me here or I hope I can think of something tomorrow when I wake up.
Thank you
B

4 Replies