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: 
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.