Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
freceena
Contributor II
Contributor II

Cumulative sum of a column based on another columns in expression editor

I have to get cumsales field by the summation of sales for months and cum_category_count should be the cumulative count of category with respect to category and month. Could anyone please suggest a solution for this?

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

you need an expression something like this

=Aggr(RangeSum(Above(Sum(sales), 0, RowNo())), category, (date, (NUMERIC))).

attached output from my  sample dataCapture.PNG