Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
MarioNZ
Contributor II
Contributor II

help with rolling period calculation

Hi All,

I'm trying to do a pretty straight forward rolling period calculation in Qlikview - at least it's pretty easy to do in Excel

I'm calculating a rolling 4 week period - as per the below -  the percentages are the answer i'm trying to achieve

i.e - after the completion of  previous week, sum(last 4 weeks)/4

Saturday  
 0% 
 0% 
 0% 
125% 
 25% 
150% 
 50% 
150% 
175% 
175% 
 75% 
 50% 
 25% 
 0% 
125% 
150% 
175% 
 75%COUNT(CD38:CD41)/4
 50% 
 25% 
 0% 
 0% 
125% 
 25% 
 25% 
 25% 
125% 
 25% 
150% 
175% 
175% 
1100% 
1100% 
1100% 
 75% 
 50% 
 25% 
 0% 
 0% 
 0% 
 0% 
 0% 
125% 
150% 
175% 
1100% 
 75% 
2 Solutions

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

I'm not sure what the dimensions of the table are or what the field Saturday represents, so this is  guess, but perhaps something like:

RangeAvg(Above(Sum(Saturday), 0, 4))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

MarioNZ
Contributor II
Contributor II
Author

Hi All,

I've used the "Accumulate 4 steps back" function and it seems to work perfectly...

THANKS!!

View solution in original post

3 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Please provide detailed calculations as for us it isn't straight forward rolling period calculation 🙂

Attach an excel sample.

Thank you

jonathandienst
Partner - Champion III
Partner - Champion III

I'm not sure what the dimensions of the table are or what the field Saturday represents, so this is  guess, but perhaps something like:

RangeAvg(Above(Sum(Saturday), 0, 4))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MarioNZ
Contributor II
Contributor II
Author

Hi All,

I've used the "Accumulate 4 steps back" function and it seems to work perfectly...

THANKS!!