Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
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)

1 Solution

Accepted Solutions
sunny_talwar

May be this

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

View solution in original post

2 Replies
sunny_talwar

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!