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

Use button to select 2 values in a list

Hello everyone,

I'm trying to create a button that would select the current and previous year in a list

YEAR field contains years in YYYY format from 2008 to 2017

Here is the list using my field "ANNEE"

qvlist1.PNG

If I use an action to select data in this field, I can select both year using


(2016|2017)


However this is means that I need to change it each year

I can select current year in my field using

=(Year(max(Date)))

But I can't find a way to select both current and previous year...

Is it possible ?

Thank you for your help

FG

1 Solution

Accepted Solutions
adamdavi3s
Master
Master

Please see the attached example

View solution in original post

3 Replies
adamdavi3s
Master
Master

You need a select in field, then a toggle select in field

=(Year(max(Date)))

=(Year(max(Date)))-1

adamdavi3s
Master
Master

Please see the attached example

fgirardin
Creator
Creator
Author

Hello Adam,

Thank you ! I was struggling to find a way and the solution was in front of my eyes the whole time XD

Have a nice day !

FG