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

weekly cumulative sales qty

I'm trying to get a table by Item, with cumulative sales qty each week.

For example, my data is:

1.PNG

I would like the result to be:

2.PNG

 

So I created a pivot table, Item as row, Week as column, measure is: 

RangeSum(Before(sum(Qty),0,columnno()))

But the result is like this: 

3.PNG

 

Since A has no sales in Week2, B has no sales in Week3, they're showing Null.

 

Any idea how to fix this? Thanks in advance!

Labels (1)
2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Wanyunyang,

Try this:

 

RangeSum(Before(TOTAL Sum(Qty),0,ColumnNo(TOTAL)))

 

Jordy

Climber 

Work smarter, not harder
wanyunyang
Creator III
Creator III
Author

Hi Jordy,

Thank you for the help! I tried, but didn't work. Same as before.