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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
aliyoung92
Contributor III
Contributor III

Max Year within AGGR Expression

Below is not working and is showing the 'Expression OK' message, however there is a error underscore between the end of the set analysis } and ,

=Sum(Aggr(Avg({<YEARCALC=$(=Max(YEARCALC))>},[Number attended]),EventID,PREVINSTNAME))

I'm presuming there is an error with the syntax but not sure how to fix.

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

May be this?

=Sum(Aggr(Avg({<YEARCALC={"$(=Max(YEARCALC)"}>} [Number attended]),EventID,PREVINSTNAME))


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

=Sum(Aggr(Avg({<YEARCALC={"$(=Max(YEARCALC)"}>} [Number attended]),EventID,PREVINSTNAME))


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
aliyoung92
Contributor III
Contributor III
Author

Thank you