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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
ashokpaladugula
Contributor III
Contributor III

How to restrict the the listbox based on condition

Hi all,

I want restrict the listbox items based on condition. Im attaching the sample document.


jaganawhitfieldswuehladamdavi3scleveranjosmanojqlik

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

=If(not IsNull(Reason), customerName)

View solution in original post

7 Replies
tresB
Champion III
Champion III

=If(not IsNull(Reason), customerName)

prma7799
Master III
Master III

Please try in your list box expression like below

=if( len (Reason) <>  0,customerName)

prma7799
Master III
Master III

PFA

Anil_Babu_Samineni
MVP
MVP

Or may be this too

=If(not WildMatch(Reason,0), customerName)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ashokpaladugula
Contributor III
Contributor III
Author

Thanks to all,

All above answers are correct and useful.

Thanks,

ASHOK

ashokpaladugula
Contributor III
Contributor III
Author

Hi Tresesco,

Listbox filter the values correctly, but in the current selections showing two filter values. so, i want show the selected customer filter in the current selection box. Please find the attachment.

customer filter issue.png

tresB
Champion III
Champion III

Well, try the below expression:

=Aggr(only({<customerName,Reason={'*'}>} customerName), customerName)