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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
MRitter
Employee
Employee

24 Month Rolling Total

I have a dimension (YYYYMM).  I need to count and display the 24 month total of new patients for each period.

 

So for 201810 I want to add up the new patient counts for each of the 24 prior months and display this number in a straight table.   That is challenge #1.

Once I have these correct I need to display the variance of this rolling total from period to period.  So if 201810 showed 43000 and 201811 showed 43100 I want to show a variance of 100 on row for 201811.

I have a looked at a bunch of options and nothing seems to be working the way I want it to.

Any direction would be greatly appreciated.

1 Reply
sunny_talwar
MVP
MVP

May be something like this

RangeSum(Above(Count(Patients), 0, 24))

and

RangeSum(Above(Count(Patients), 0, 24)) - Above(RangeSum(Above(Count(Patients), 0, 24)))