Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

10 week average

Hi,

I need this year average and last year average.

This year average I get with this:

=(sum({<Date={'>=$(=WeekStart(Max(Date), -9))<=$(=Max(Date))'},Week=,Year=}Value))/10

But how can I change it that Date is the Date -1 year?

And what will happen if I select a date like 29 feb and it does not exist in the year before?

1 Reply
whiteline
Master II
Master II

=AddMonths(Date, -12)

Also you can use YearToDate() to check if the date is year to date.