Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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