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: 
max31
Contributor III
Contributor III

Accumulative rolling calculations over unselected period

Hello all,

I’d like to display an accumulative rolling rate over a 3 month period on a chart .

Elif & Gysbert’s posts helped a lot but I still have a question.

Let me show you my data:

clipboard_image_0.png

Rolling A is:

 

rangesum( above(Count({$<month>}A),0,3) )

 

Rolling B is:

 

rangesum( above(Sum({$<month>}B),0,3) )

 

Result is:

 

( 1 - Count({$<month>}A) / Sum({$<month>}B) ) * 100

 

Rolling result is:

 

( 1 - rangesum( above(Count({$<month>}A),0,3) ) / rangesum( above(Sum({$<month>}B),0,3) ) ) * 100

 

Month is:

 

=if(Year(month)=2019 or Year(month)=2018, Date(month, 'YYYY-MM'), Null())

 

Would it be possible that 2017-12 and 2017-11 figures are included in “rolling A” and “rolling B” calculations even if they are not selected?

Note that the "month" filter only contains the last month value (2019-06 in my example).

Thanks a lot!

1 Solution

Accepted Solutions
max31
Contributor III
Contributor III
Author

Actually the problem came from my data sorting. Once I updated the sorting it was fine.
If you have the same issue take a look to this solution.

View solution in original post

1 Reply
max31
Contributor III
Contributor III
Author

Actually the problem came from my data sorting. Once I updated the sorting it was fine.
If you have the same issue take a look to this solution.