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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I force only one selection across multiple listboxes

I have a sample dataset as below

Record#AmountAUM_tagAUS_tagTCP_tag
1100AUMAUSTCP
2200AUMAUSTCP
3300AUMAUSTCP
4400AUS TCP
5500AUSTCP
6600TCP


Ideally I would like to create single listbox that showed values AUM , AUS , TCP.

and charts get updated based on what user chooses.

Couldn't find an easy way to accomplish above, I ended up creating three listboxes.

Now I would like to enforce only one selection between 3 listboxed at one time.

Any ideas?

2 Replies
erichshiino
Partner - Master
Partner - Master

Hi,

You can separate your tags in a single field and associate it with the records. This way, you can use this new field as your only list box.

It will be similar to this script:

temp:

LOAD * INLINE [

    Record, Amount, Tag1, Tag2, Tag3

    1, 100, A, B, C

    2, 200, A, B, C

    3, 150, , B, C

    4, 120, , , C

    5, 50, , , C

];

Table:

Load Record, Amount

Resident temp;

Tags:

Load Tag1 as Tag,

Record

Resident temp

where len(Tag1)> 0

;

Tags:

Load Tag2 as Tag,

Record

Resident temp

where len(Tag2)> 0

;

Tags:

Load Tag3 as Tag,

Record

Resident temp

where len(Tag3)> 0

;

drop table temp;

Hope this helps,

Erich

Not applicable
Author

You can select a value from three different fields in a single list box. Create a list box and in the properties, instead of choosing a field name, choose <expression>. Then, in the expression dialog box, try this:    ='AUM=' & AUM_tag & ' AUS=' & AUS_tag & ' TCP=' & TCP_tag             then click OK. You will then have a list box that shows all of the combinations of the three field values that occur in the data. A single click on the values shown in the list box selects the corresponding value from each of the three fields at once.  You should put a meaningful title into the listbox and, if needed, adjust the list box sort to sort on one of the fields.