Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
johnjustus
Contributor III
Contributor III

Cummulative sum expression

All,

I would like to calculate Cumulative total for the below sample data in the front end.

Can some one please help me out with the correct expression? Thanks

Product ID         Sales    Cumulative Total

A12                          20             20

A13                         30              50

A14                        40               70

A15                        50              90

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try an expression like this:

sum( aggr( rangesum( above( sum(Sales),0,2) ),[Product ID]))

View solution in original post

2 Replies
Vegar
MVP
MVP

Try an expression like this:

sum( aggr( rangesum( above( sum(Sales),0,2) ),[Product ID]))

johnjustus
Contributor III
Contributor III
Author

Perfect - Thanks