Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
c_pannese
Partner - Creator
Partner - Creator

cumulative sum on years

Hi all,

i have to calculate cumulative sum by month in a linear table and re-starting the sum when the year change.

like this:

yearmonthmeasurecumulative
2010gen66
2010feb713
2010mar518
2010apr826
2010mag228
2010giu634
2010lug640
2010ago747
2010set552
2010ott860
2010nov262
2010dic668
2011gen22
2011feb79
2011mar514
2011apr822
2011mag224
2011giu630
2011lug636
2011ago743
2011set548
2011ott856
2011nov258
2011dic664

 

thank you all

Labels (1)
1 Solution

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

Depending on your data model use RangeSum/Above, so something like

rangesum(above(sum(Amount),0,month(Date)))

20210720_1.png

Cheers,

Chris.

View solution in original post

1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

Depending on your data model use RangeSum/Above, so something like

rangesum(above(sum(Amount),0,month(Date)))

20210720_1.png

Cheers,

Chris.