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

rolling year


I want to display last two years data based on selection: I am using

concat({<OpYear={">=$(vTwoyear)<=$(vCurrentYear)"}>}  OpYear,'"|"')

But it gives me only 2014|2014|2014|2014 lot of times, Any solution for this?

3 Replies
gautik92
Specialist III
Specialist III

MK_QSL
MVP
MVP

concat(DISTINCT {<OpYear={">=$(vTwoyear)<=$(vCurrentYear)"}>}  OpYear,'"|"')

tresesco
MVP
MVP

Try like:

concat({<OpYear={">=$(vTwoyear)<=$(vCurrentYear)"}>} Distinct OpYear,'"|"')