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

Cumulative Calculation

Hi All,

I have following fields. I need to calculate Cumulative amount. I have fiscal period and monthly saving fields. please help.

I use rangesum(above(sum([VRMonthlySaving]),0,rowno())) but not working. give 0's or wrong figure against wrong month. Thanks

   

Fiscal PeriodMonthly SavingsCumulative
1-Dec-1441804180
1-Jan-1541808360
1-Feb-1513309690
1-Mar-15304012730
1-Apr-15285015580
1-May-15342019000
1-Jun-15513024130
1-Jul-15513029260
6 Replies
devarasu07
Master II
Master II

Hi,

Try like below

Create Expression as Cumulative Savings

and enable [Fiscal period] sorting  as ascending order

=RangeSum(Above(TOTAL Sum([Monthly Savings]), 0, RowNo(TOTAL)))


PS: also you can achieve by using as of Table method (back end script method)

Capture.JPG


Hope this helps to you


Regards,Deva

rahulpawarb
Specialist III
Specialist III

Refer attached sample application.

Regards!

Rahul Pawar

Not applicable
Author

Hi ,

   why it is not working without using 'Total'.Could please explain which scenarios we need to use 'Total'

devarasu07
Master II
Master II

Hi,

Without "Total" it will just show the row actual value. so we need to use TOTAL qualifier to read the whole column

That will sum up all the amounts in the first column (corresponding to the first visible expression in Chart).

Thanks,

Deva

Not applicable
Author

Hi Deva,

Thanks for your solution. Actually when I tried it on my data it gave me 0's and the values started from mar-2017 but wrong. I am using derived Year/Month from date. It gives me calculation for MonthlySaving properly by month as shown in graph and table. But I am unable to get cumulative. Where I am wrong.? I used the same formula

RangeSum(Above(TOTAL Sum([VRMonthlySaving]), 0, RowNo(TOTAL))).

Not applicable
Author

hi Deva,

one more clip or result