Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to achieve this ?

Hi All,

I have a pivot table where i need to do rolling sum by subproducts..

    

ProductYearMonthsubproductNormal ValueRolling Sum
P12015Jan-15A1010
B1212
C1313
Feb-15A1121
B4557
C2033
Mar-15A425
B65122
C1043

above is my data set.. and i want to calculate the rolling sum by subproducts..

Thanks in advance.

Regards,

Aashish

3 Replies
MK_QSL
MVP
MVP

Sum(Aggr(RangeSum(Above(Sum(Value), 0, RowNo())), SubProduct,Product,Year, Month))

FieldNames are case sensitive in QlikView so change according to your application.

i.e. SubProduct to subproduct etc..

Anil_Babu_Samineni

Seems works to me

Sum(Aggr(RangeSum(Above(Sum([Normal Value]), 0, RowNo())), subproduct,Product,Year, Month))

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Use aggr( rangesum(above( sum(NormalValue), 0, rowno() )), subproduct, Month)   for your rolling sum.