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: 
fcecconi
Partner - Creator III
Partner - Creator III

Rolling Totals

I would like to create a rolling total by month.  I have found some great examples in the community, but unfortunately I am not getting my expected totals.  This is the expression I am using: sum( aggr( rangesum( above( Count({<[Record OSHA Form]={'Yes'}>}[Date of Injury]),0,12) ),Safety_Month))

      

Safety_MonthTotal #Recorded #Lost Time #Running SumRunning Sum (Correct)
Jan 201511011
Feb 201531022
Mar 201542044
Apr 201520004
May 201510004
Jun 201500004
Jul 201500004
Aug 201500004
Sep 201500004
Oct 201500004

The last column is what I need the calculation to be.

thanks!

1 Solution

Accepted Solutions
2 Replies
sunny_talwar

We can recommend a solution for the data you have shared, but you might need to tweak that for your scenario or provide with a sample of what you are working with.

Best,

Sunny

miguelbraga
Partner - Specialist III
Partner - Specialist III