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

show and hide column (expression) based on listbox selection

On the attached you will see that when a list box selection is selected it will add it to the table. 

 

However when all selections are removed all columns still appear. 

 

How can I alter the condition code so that each column can be added and removed independently of one an other and if one is not selected it will not appear regardless of no other selections being made.

 

 

Labels (2)
1 Reply
dplr-rn
Partner - Master III
Partner - Master III

Hope i understood your problem correctly.
If what you want is, when nothing is selected no columns should appear.
change to something like below
if(GetSelectedCount(Selection)>0,
substringcount(concat(Selection),'Quantity')
,0)