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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
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

2 Replies
marcus_sommer

Try this:

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

- Marcus

Not applicable
Author

Thanks a lot!!!