Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Fix Value in Set Analysis

Hello,

I have the following expression to get the last Contract Date from the last Year we have available:

MAX({$<YEAR={'$(=MAX(YEAR))'}>}CONTACT_DATE)

What I need is to fix the year to show always the last value, in spite of any Year selection.

So if I select Year = 2017/2016/2015 I should always show the Contract Date for my last available Year.

Do you know how could I do that?

Thank you!!!

1 Solution

Accepted Solutions
sunny_talwar

Try this

Max({$<YEAR={'$(=Max({1}YEAR))'}>}CONTACT_DATE)

View solution in original post

4 Replies
sunny_talwar

Try this

Max({$<YEAR={'$(=Max({1}YEAR))'}>}CONTACT_DATE)

Anil_Babu_Samineni

May be this?

MAX({1<YEAR={'$(=MAX(YEAR))'}>}CONTACT_DATE)

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
sunny_talwar

Or this

Max({$<YEAR={'$(=Max({<YEAR>}YEAR))'}>}CONTACT_DATE)

ben_pugh
Creator
Creator

If you are wondering why people are using {1} instead of {$}, it would be worth familiarizing yourself with set identifiers.

$ = currently selected values

1 = all values in the data, irrespective of current selections

Set Analysis