Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional show of listboxes

Hi!

I have a list box with a 500+ values that I would like to separate into "sub-listboxes" with predefined values in each. For example i want sub-listbox1 to contain values A, C and D, sub-listbox2 to contain values M,K,L,B and A and so on.

I Think that the easiest way is to make copies of the same listboxes with different conditional-show expressions but I can't make it work. I tried =if(field='A' or field='C', field) but it didn't work since the other field are still visible, and choosable.

Thankful for any kind of help!

/Charlotte

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Listbox > properties >

Under field, scroll right down and select <Expression>

the expression editior will pop up

add this expression

if(WildMatch(PRODUCT,'A*','B*','C*'),PRODUCT)

Title: Products A to C

Repeat for each subset...

View solution in original post

6 Replies
sunny_talwar

I think instead of conditional show, you should use list box with expressions. There is two way to write the expression

1) If(Match(field, 'A', 'C', 'D'), field)

or

2) Aggr(Only({1<field = {'A', 'C', 'D'} field), field)

Anonymous
Not applicable
Author

Thank you! I tried both the expressions, but unfortunatley my other field values are still choosable. I only want to see A, C and D.

Anonymous
Not applicable
Author

Listbox > properties >

Under field, scroll right down and select <Expression>

the expression editior will pop up

add this expression

if(WildMatch(PRODUCT,'A*','B*','C*'),PRODUCT)

Title: Products A to C

Repeat for each subset...

its_anandrjs

Check this attached Qlik file

Use this expression:- =IF(Match(Product,'A','C','D'),Product)

Regards

Anand

Anonymous
Not applicable
Author

Many thanks!!!!!

Anonymous
Not applicable
Author

thank you all for your help! I now solved it