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: 
Anonymous
Not applicable

Fornightly Moving Average

Well, I need to create an expression that calculates a fornightly moving average.

I'm attaching an Excel file with the data I have in another Excel file and the data I have in one pivot table in Qlikview.

I need to calculate the moving average for every single day using the data I have from the latest ten days in the "Tasa Otros" column (expression).
I have used this formula:

RangeAvg(Above("Tasa Otros",0,10))

but the result is wrong.

I created my pivot table with three dimensions: Año (Year), Mes (Month) and Día (Day)

But for holidays and weekends, the value for "Tasa Otros" is null.

So I used the next formula:

IF(IsNull("Tasa Otros"),null(),RangeAvg(Above("Tasa Otros",0,10)))

but, it didn't work too.

Please, help me!!!

Hope you'll understand what I'm asking for

2 Replies
BalaBhaskar_Qlik
Master
Master

Try this:

=RangeAvg(Above(Count("Tasa Otros"),0,10))

BalaBhaskar_Qlik
Master
Master

Delete this duplicate thread.

=IF(IsNull("Tasa Otros"),null(),RangeAvg(Above(Count("Tasa Otros"),0,rowno())))