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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Query - calculate avg value based on max date

Hi

I've been trying to work out average turnover for a group of companies based on a the most recent date available, but there's an error in my set analysis somewhere and I'm hoping someone can point it out!  Any and all help would be greatly appreciated

=Avg(

{<Date={$(=Max(Date))}>}

Turnover)

Many thanks

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

try putting the expression in a varable :

=Avg(

{<Date={"$(Variable1)"}>}

Turnover)

or add double quotes:

=Avg(

{<Date={"$(=Max(Date))"}>}

Turnover)

View solution in original post

2 Replies
giakoum
Partner - Master II
Partner - Master II

try putting the expression in a varable :

=Avg(

{<Date={"$(Variable1)"}>}

Turnover)

or add double quotes:

=Avg(

{<Date={"$(=Max(Date))"}>}

Turnover)

Not applicable
Author

Thanks Ioannis - double quotes worked perfectly