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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

max function in a plot of average

Hello, community!

I have a dataset with fields, such as: data, week(data), avg_sum_of_sales.

I want to create a text_box which contains average sum of sales per LAST week (max(week(data)) . I try to make such expression:

avg({1<[week(data)]=Max([week(data)]))>}[avg(avg_sum_of_sales)]). Whats wrong with that and how to make it right?

Thanks in advance!

Marina

Labels (1)
2 Replies
marcus_sommer
MVP
MVP

Try this:

avg({1< [week(data)] = {"$(=Max([week(data)]))"} >} [avg_sum_of_sales])

- Marcus

Not applicable
Author

Thanks a lot!!!