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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Set analysis. Modifier as expression

Good evening,

Is it possible in Set analysis Set modifier as an expression?

My set analysis sentence looks like this SUM({1<Year = {2012}>}VILNIUS).

Can I modify value 2012 like to MAX(Year) or so?

Thank you in advance

1 Solution

Accepted Solutions
sunny_talwar

Yes you can. Try this:

=Sum({1<Year = {"$(=Max(Year))"}>}VILNIUS) or

=Sum({1<Year = {"$(=Max({1}Year))"}>}VILNIUS) if you want the max year to be always the max regardless of any selections.

HTH

Best,

Sunny

View solution in original post

2 Replies
sunny_talwar

Yes you can. Try this:

=Sum({1<Year = {"$(=Max(Year))"}>}VILNIUS) or

=Sum({1<Year = {"$(=Max({1}Year))"}>}VILNIUS) if you want the max year to be always the max regardless of any selections.

HTH

Best,

Sunny

maxgro
MVP
MVP

pag. 10 of pdf

Set Analysis: syntaxes, examples

or in Qlik help