Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Limit selection possibilities in selection box

Hi!

I have 5 different factories but I only want 4 of them to be visible in my selection box. Is there any way of limiting the selections to be visible in my selection box?

Thanks!

9 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Yes its possible.Try with this

     =if(WildMatch(Factory,'Factory1','Factory2','Factory3','Factory4'),Factory)

     as a expression in listbox

Hope it helps

Celambarasan

swuehl
MVP
MVP

Or just exclude the one you don't want to show:

=if(Factory <> 'FactoryNotToShowName', Factory)

as the list box field expression (open the drop down field list in general tab, select <Expression> from the very end).

jagan
Partner - Champion III
Partner - Champion III

Hi,

This is the better option to exclude one Factory

=if(Factory <> 'FactoryNotToShowName', Factory)

Regards,

Jagan.

Not applicable
Author

Thanks!!

Not applicable
Author

Thanks a lot!!

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,    

     Close this discussion by marking as correct answer.

Celambarasan

Anonymous
Not applicable
Author

How about more than one exclusion?

Not applicable
Author

In order to handle more than one exclusion you could just do =if(Factory <> 'FactoryNotToShowName' AND Factory <> 'FactoryNotToShowName2', Factory) ... I think in set analysis something like =only({<Factory -= {'FactoryNotToShowName', 'FactoryNotToShowName2'}>}Factory) would work as well.

Anonymous
Not applicable
Author

Thank you Christian, a great help.