Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sameer225
Contributor
Contributor

Rolling Sum

I need to know how to calculate the rolling sum in qlik sense script.

I below mention the example dataset that I am using and I need the rolling sum of the qty as new feild and the value shouldn't be changed when any filter is applied on the rolling sum 

1 Solution

Accepted Solutions
Channa
Specialist III
Specialist III

IF(Previous(Year)=Year,RangeSum(Peek(QTY),QTY),QTY) AS QTY

Channa

View solution in original post

1 Reply
Channa
Specialist III
Specialist III

IF(Previous(Year)=Year,RangeSum(Peek(QTY),QTY),QTY) AS QTY

Channa