Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
berkarmagan
Partner - Creator
Partner - Creator

Cumulative expression on pivot table

Hi,

I have a pivot table, year and month on pivot column, and i need cumulative sum(data)  like the example below. When i use just sum(data)  expression and pick Jan to May and 2015-2016 on list box the result is like the example 1, but i need a result like example 2, which is calculating cumulative by month and for just up to May for 2015 and also 2016. Is it possible? I tried range and above function but, it s getting complicated when I pick 2 years on list box. Thanks for now.

1)

20152016
JanFebMarAprMayJanFebMarAprMay
Product10202520102020101510
2)
20152016
JanFebMarAprMayJanFebMarAprMay
Product10305575852040506575
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

this expression should do the trick for you

RangeSum(before( sum(SalesAmount) ,0,columnno(TOTAL)))

replace the sum(SalesAmount) with your expression

View solution in original post

3 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

this expression should do the trick for you

RangeSum(before( sum(SalesAmount) ,0,columnno(TOTAL)))

replace the sum(SalesAmount) with your expression

Gysbert_Wassenaar

That looks like a pivot table. Try using the Before() function instead of the Above() function.


talk is cheap, supply exceeds demand
berkarmagan
Partner - Creator
Partner - Creator
Author

That worked, thanks 🙂