Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetFieldSelections with multiple values

Hi there,

i have a listbox with three values for year:     2012   2013  2014

I am using this listbox to enable and disable diagrams. This works fine with 1 value, like this in the Layout - Show Condition:

GetFieldSelections(Year) = 2013

But what about if i need to interpret 2 selections of the User (ie: 2013 and 2014)?

I am looking for a solution like this:

GetFieldSelections(Year) = 2013 or ((GetFieldSelections(Year) = 2013 and GetFieldSelections(Year) = 2014))

Thanks and regards

Sabrina

1 Solution

Accepted Solutions
Not applicable
Author

Thank you!

I have found the solution by myself:          Index(GetFieldSelections(Jahr), 2013) >0

Your solution didn't work correctly.

Regards!

View solution in original post

3 Replies
yduval75
Partner - Creator III
Partner - Creator III

Hello,

try this


Match(GetFieldSelections(Year) , 2013, 2014) > 0

Not applicable
Author

Thank you!

I have found the solution by myself:          Index(GetFieldSelections(Jahr), 2013) >0

Your solution didn't work correctly.

Regards!

obriened83
Creator
Creator

Many thanks for the solution Sabrina, worked really well!!