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

How to Cumulative Sum in pivot Table

My actual data set is the monthly values, and I want it to be the result is the cumulative values,  Can someone enlighten me what expression or how to do it just like the cumulative values

Capture.PNG

 

 

 

1 Solution

Accepted Solutions
bill_mtc
Partner - Creator
Partner - Creator

Hi Step,

The used of function AGGR() may help. See below:

Aggr(RangeSum(Above(Sum(Value),0,RowNo())), (YearMonth))

or see attached QVF for reference.

 

Regards,

Bill

 

View solution in original post

6 Replies
arulsettu
Master III
Master III

Maybe like this 

 

Rangesum(above(sum(sales),0,Rowno()))

Step
Contributor II
Contributor II
Author

Hello Arulsetto,

 there is no effect on commulating column, must be 2018 from jan to dec they must be summing up then from 2019 it will cumulate the sum values of 2018 to 2019 

arulsettu
Master III
Master III

Can you share sample app with expected output

Step
Contributor II
Contributor II
Author

This is the sample data:

my data.PNG

 

 

This is the expected result:

expected.PNG

 

bill_mtc
Partner - Creator
Partner - Creator

Hi Step,

The used of function AGGR() may help. See below:

Aggr(RangeSum(Above(Sum(Value),0,RowNo())), (YearMonth))

or see attached QVF for reference.

 

Regards,

Bill

 

Step
Contributor II
Contributor II
Author

Thank you sir Bill for a solution!