Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
johnnyjohn
Creator
Creator

Calculating weekly average for the past month

I'm trying to calculate the previous week's sales vs the weekly average of the past month's sales, i.e. in the past month, what is the average sales for each week.

I can do the first part, the previous week's sales with =sum({<date= {">=$(=Date(weekstart(MAX(date)-7)))<$(=Date(weekend(MAX(date)-7)))"}>} Gross_Consideration_Eur )

However, I'm not sure how to get the weekly average of the past month. How can I do this?

0 Replies