Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Cumulative Sum with condition

Hello everybody,

I'm not able to figure out how to solve this issue: I have a pivot table with some dimensions an expression that is the sum of a quantity (Forecast) and I'd like to have a new expression that is the cumulative sum of the "Forecast" but only for the rows with the same month.

Attached you will find an example on what I'd like to have (i.e. line 14 column G= line 14 column F+ line 2 column F)

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Aggr(RangeSum(Above(Sum(Forecast), 0, RowNo())), Name, ItemId, Month, (Year, (NUMERIC)))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

Aggr(RangeSum(Above(Sum(Forecast), 0, RowNo())), Name, ItemId, Month, (Year, (NUMERIC)))

Anonymous
Not applicable
Author

Thank you very much, it works!