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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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,'"|"')

tresB
Champion III
Champion III

Try like:

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