Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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