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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
VivenReddy
Partner - Creator
Partner - Creator

Creating 2nd list box based on 1st list box selections

I have 2 list boxes. I need the 2nd list box to only list values that have been selected in the 1st list box. When no values are selected in 1st list box then both list boxes should display all values. In the example below, since Honda, Nissan and Toyota have been selected in 1st list box, they should be the only values available in 2nd list box - all 3 values should be white (unselected). The user should be able to make a selection in the 2nd list box which would not affect the values in 1st list box.

VivenReddy_0-1611346678243.png

16 Replies
edwin
Master II
Master II

this one has the seq corrected

edwin
Master II
Master II

edwin_1-1611605702320.png

 

edwin
Master II
Master II

the principle is create a duplicate field that is one to one with teh selected field.  this allows you to list the POSSIBLE selections in WHITE.

edwin
Master II
Master II

to address the requirement where you dont want the original list touched while selecting from teh second list is done through alt state - one caveat though this adds complexity to your expressions. 
you can always go back to the first solution without alt states.

edwin
Master II
Master II

To be clear, you dont duplicate your data set, you just duplicate the dimension you want the user to select.  you should profile your data and determine the unique number of values.  if the values are very limited (normally fields used in dropdown lists should be very limited otherwise it will not be effective) you can use the original solution and create a new table with just the 2 duplicated fields.  

if the volume is huge then just duplicate it inside your fact

 

VivenReddy
Partner - Creator
Partner - Creator
Author

Thanks Edwin. Sorry for the late reply - I got pulled into another project.

VivenReddy_0-1612311455534.png

VivenReddy_1-1612311495768.png

See 2 screenshots attached.

In the 1st screenshot CARS3 filter should be only displaying 4 values (Volkswagen, Toyota, Nissan, Honda) in white. All grey values should not be listed.

In the 2nd screenshot a selection has been made in the CARS3 filter. So only Toyota should be highlighted in green and Volkswagen, Nissan, Honda should be the only grey values.

Is this possible? This seems to make more sense and will replicate Qlikview functionality.

edwin
Master II
Master II

not sure how you got the screenshots if you were using the QVW i attached:
no selection:

edwin_0-1612361215004.png

select a couple:

edwin_1-1612361250216.png

but your last requirement where you want toyota shown as selected and others in gray is a stretch. as it conflicts with your requirement that those not selectable are not shown

edwin_2-1612361368288.png