Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Action-Packed Learning Awaits! QlikWorld 2023. April 17 - 20 in Las Vegas: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Jsobrinho77
Contributor III
Contributor III

getcurrentselectoin with variable

Hi guys,

I have a filter1 with variables:

filter1 expression:
IF( $(vVariable1) = 1, Column1, 

 IF( $(vVariable1) = 2, Column2,

  IF( $(vVariable1) = 3, Column3, 

     IF( $(vVariable1) = 4, Column4))))

I need to verify if there is a selection in this filter. How can I do this, when I select one value  in  filter1, I cant know if which column was selected because I'm selecting in filter1 .

 

I have a chart that shows values only if one selection is made in filter1.

Labels (4)
2 Replies
Gui_Approbato
Creator III
Creator III

Hi,

I think the expression GetSelectedCount() would be useful for you..
Something like:

IF( $(vVariable1) = 1, if(GetSelectedCount(Column1)>0, Column1) ,

... 

Jsobrinho77
Contributor III
Contributor III
Author

First of all, thank you for your answer...

Its not working, because when I select the filter, I'm selection the filter and not the Column1, so the getselectedcount is null for Column1