Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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