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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

with button value for listbox exlude

Dear QV-experts,

I have a simple problem:

I have a listbox with a lot of values. I can select multiple values for my report.

Now I want to have a possibility with button to include/exclude from the selected values follow value: 229.

Unbenannt.JPG

How can I include one value to the selected values?

=GetFieldSelections(LE)& (LE=229) is not working

Kind regards,

André

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

try this

='(' & Concat(DISTINCT{<LE-={'229'}>} chr(34) & LE & chr(34),'|') &')'

View solution in original post

4 Replies
Kushal_Chawda
MVP
MVP

try this

='(' & Concat(DISTINCT{<LE-={'229'}>} chr(34) & LE & chr(34),'|') &')'

sunny_talwar
MVP
MVP

May be this needs to only work when something is already selected in LE:

If(GetSelectedCount(LE) > 0, '(' & Concat(DISTINCT{<LE-={'229'}>} chr(34) & LE & chr(34),'|') &')')

erikzions
Creator
Creator

use the action "Toggle Select" and just put the value 229. This will toggle it on or off.  Use only one button or text box and change the label for the current function of the button.

Not applicable
Author

thank you for your reply! It works

I have now two buttons: with/without "LE+/-={'229'}"

in one_button_solution

=if(Concat(DISTINCT(LE='229')),

'(' & Concat(DISTINCT{<LE-={'229'}>} chr(34) & LE & chr(34),'|') &')',

'(' & Concat(DISTINCT{<LE+={'229'}>} chr(34) & LE & chr(34),'|') &')'  

)