Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulate for past 12 months

Hi,

please find the attached excel for sample.

after doing crosstable I will have three columns Number,Date, Value.

I want the sum of and additional column in my data set (Accumulate) that will sum up the value of current month and previous 11 months.

this I have to do in script

the desired output:

   

NumberDateValueAccumulate
701/1/2015   60,509.07    729,224.96
7012/1/2014 61,689.61    728,141.90
7011/1/2014 62,078.73    723,717.41
7010/1/2014 62,047.11    716,038.66
709/1/2014 61,727.59    710,369.40
708/1/2014 64,205.34    704,722.05
707/1/2014 63,459.47    694,504.95
706/1/2014 61,978.54    685,532.54
705/1/2014 60,399.41    673,976.80
704/1/2014 58,169.40    667,299.14
703/1/2014 59,592.68    661,272.09
702/1/2014 53,368.01    653,336.89
701/1/2014 59,426.01    599,968.88
7012/1/2013 57,265.12    540,542.87
7011/1/2013 54,399.98    483,277.75
7010/1/2013 56,377.85    428,877.77
709/1/2013 56,080.24    372,499.92
708/1/2013 53,988.24    316,419.68
707/1/2013 54,487.06    262,431.44
706/1/2013 50,422.80    207,944.38
705/1/2013 53,721.75    157,521.58
704/1/2013 52,142.35    103,799.83
703/1/2013 51,657.48      51,657.48
2 Replies
Not applicable
Author

please reply its urgent

Not applicable
Author

Hi Amrit,

Didn't see your request. - You need to use RangeSum(Below(TOTAL Amount,0,12)) to get the desired result in a cross-table like this.

Support1.png

Regards,

Sajeevan