Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Match selected values in expression

Hi

Lets say i load the following inline table


LOAD * INLINE [
Id, Value
1, A
2, B
];


and the following variables


SET A = 1;
SET B = 2;


Then I create a Listbox with field "Value", so the user can select none of them, all of them or just one of them.

Then I create a chart where the expression in the chart will depend on if one of the values is selected. I.e. I would like an expressions like


IF(IsSelected(Id, A), ..., ...)


I have looked at the GetFieldSelections() function but that will not give me the "Id" field when the selectbox displays the "Value" field.

Is this possible? If so what would be the simpliest and most elegant way of doing this? I could always match the "Value" but I don't want to if I don't have to.

br
Per-Anders Söderqvist

0 Replies