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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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,'"|"')