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

Issue in list box for years

Hi maxgro , swuehl,

Can someone please tell me the expression for excluding past three years from the list box dynamically.

4 Replies
sunny_talwar

Exclude past three years or include them?

sunny_talwar

Exclude may be this:

If(not Match(Year, Max({1}Year), Max({1}Year, 2), Max({1}Year, 3)), Year)

Include:

If(Match(Year, Max({1}Year), Max({1}Year, 2), Max({1}Year, 3)), Year)

ramoncova06
Partner - Specialist III
Partner - Specialist III

this is to only show the last three years

aggr(only({<Year = {">=$(max(Year,3))"}>}Year),Year)

this is to exclude the last three year

aggr(only({<Year = {"<=$(max(Year,3))"}>}Year),Year)

antoniotiman
Master III
Master III

Hi,

Try

=Aggr(DISTINCT  If(Rank(TOTAL -YEAR) > 3,YEAR),YEAR)

Regards