Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
vmoreno2605
Creator
Creator

Cumulative Sum in Script Qlik Sense

Hi Qlik Masters! 

I need your help!

Here is the situation: 

Here, i have this data

StoreCustomerReceipt_DateMoney in suspense
1104258950
11042895-50
1104300523
1104303569
1114150065
11141550-95
1114155558
11141623-450
11141950321
2124358965
21243599-65
2124360068
2124361265
21243615-265
2124365075
21342950-95
213429905
2134300032
21343101-12
213431255

 

And i want to create this column 'Cumulative'

StoreCustomerReceipt_DateMoney in suspenseCumulative
110425895050
11042895-500
110430052323
110430356992
111415006565
11141550-95-30
111415555828
11141623-450-422
11141950321-101
212435896565
21243599-650
212436006868
2124361265133
21243615-265-132
2124365075-57
21342950-95-95
213429905-90
2134300032-58
21343101-12-70
213431255-65

 

Any ideas? 

 

Thanks in advance

-D

Labels (3)
1 Solution

Accepted Solutions
Ezir
Creator II
Creator II

Hi @vmoreno2605 ,

In load editor you can use RangeSum() and Peek(). 

 

 

TABLE:
LOAD Store, Customer, Receipt_Date, [Money in suspense], RangeSum(peek('Cumulative') , [Money in suspense]) AS Cumulative ...

 

Regards,

 

Ezir

View solution in original post

2 Replies
Ezir
Creator II
Creator II

Hi @vmoreno2605 ,

In load editor you can use RangeSum() and Peek(). 

 

 

TABLE:
LOAD Store, Customer, Receipt_Date, [Money in suspense], RangeSum(peek('Cumulative') , [Money in suspense]) AS Cumulative ...

 

Regards,

 

Ezir

jmbenedetto
Employee
Employee

Hello, Ezir.

Would you know if it is possible to make have the cumulative value dependent on another dimension?