Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Tell us which business and trade publications you read most regularly: RESPOND NOW
Showing results for 
Search instead for 
Did you mean: 

list box show field values dynamically by selecting button in Qlik sense

Hi All,

I have a filter in my report it contains 10 values.I have two buttons , if I selected  Button-1 to show only 5 values  in my list box/filter and if I selected button-2 it should show all values in my list box/filter.any help.

This expression Aggr(Field,Field) like wise i have to display my listbox based on button selection.



1 Reply

HI, you can add a flag to those 5 values values on script, from there you have different options:

- One button selcts the flag leaving only this fields avaible, and the other deselects it

- One button set a varible to * and the other to 1 (the value of the flag). And use an expression like: Aggr({<FlagField={"$(variableName)"}>} Only({<FlagField={"$(variableName)"}>} Field),Field)

- Have 2 fields, one with all values and the other with just 5 of them, both in a container, one button shows one and the other button shows the other field