Discussion board where members can get started with Qlik Sense.
I'm trying to find a way to operate a rangesum within the script. Table looks like this:
Expected result is in column CUMUL.
Thanks for your help
Go to Solution.
This is a way to do it:
RAW_DATA:LOAD RowNo() AS R#, *INLINE [ITEM OCCURRENCEA 1 A 1 A 1 A 1 B 1 B 1 A 1 A 1 B 1 A 1 B 1 B 1 B 1 ] (delimiter is \t);
DATA:LOAD If(R#=1,OCCURRENCE,If(Peek('ITEM')<>ITEM,OCCURRENCE,OCCURRENCE+ Peek('CUMUL'))) AS CUMUL, *RESIDENT RAW_DATAORDER BY ITEM, R#;DROP TABLE RAW_DATA;
YES PERFECT !
Please click "like" to give credit as that is the only way that actual credit is given on this forum ... strangely enough ... 🙂