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

Check if element is selected

Hi, i need to check if my element in my visualization is selected, how can i do that?

In the picture one you can see the object,  this name is LB144

The expression in it is: =if(FORNITORE='PWE',FORNITORE)

but:

a. when i do some selection in my layout if i use this in a textbox for example: =GetFieldSelections(FORNITORE) 

the resulset is: ECO,PWE

b. if i check the value with this: =[FORNITORE]

the resultset is: -

so i need to check the element becouse i want only have for resulset PWE, how can i check my element if is selected or not?

thanks

3 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

I strongly suggest using Only:

=if(Only(FORNITORE)='PWE',FORNITORE)

martinpohl
Partner - Master
Partner - Master

Hi,

when you select in a field many values and select in another field additional values then will:

-in a listbox the values reduced to values who have relationship in both selections

but when using getfieldselections you will see the based values on field one.

So if you want to see what is the result of both maybe use concat(distinct yourfield , ',')

Regards

danosoft
Specialist
Specialist
Author

Thanks, but i only want to see PWE in FORNITORE field, not all those values when i choose some selections