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: 
lucarizziero
Partner - Contributor III
Partner - Contributor III

Pivot table with running sum (2)

Hi

I have the following Pivot Table                                             

productcolourdatecust. Orderrunning sum
141MBACAL0094CR3101/02/144545
141MBACAL0094CR3102/02/141964
141MBACAL0094CR3101/03/14367
141MBACAL0094OL7101/02/145252
141MBACAL0094OL7102/02/142678

I'm not able to obtain the column named [running sum]: it should contains the running sum of the cust. Order column restarting each change of the combination [product]+[colour] dimensions.

In the solutions posted I can obtain a continuous running sum, while I need it restart each time the dimensions [product]+[colour] changes.

Thanks

6 Replies
tresesco
MVP
MVP

Try like:

rangesum (above(total [cust. Order],1,2)))

Note: It's working would depend on your dimension occurance. If you find this not working, please share a sample app.

nizamsha
Specialist II
Specialist II

RangeSum(Above(TOTAL SUM(S),0,1000))

nizamsha
Specialist II
Specialist II

RangeSum(Above(TOTAL SUM([cust. Order]),0,1000))

lucarizziero
Partner - Contributor III
Partner - Contributor III
Author

here is a sample app

thanks

Luca

qlikpahadi07
Specialist
Specialist

try this:

Aggr(RangeSum(Above(SUM(cust_order),0,RowNo())),colour, k)

check the attachment

tresesco
MVP
MVP

In that case you can use the expression without TOTAL like:

RANGESUM(Column(1),ABOVE( Column(2)))

But then your result will change, the running sum would start over again for each new member of second last dimension value (here date). Unfortunately, TOTAL can't be used to control the dimension level. I.e, if you use it it will disregard all dimensions but not till a specific level.