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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
rabbani_sk
Contributor III
Contributor III

How to filter the data values in a list box?

Hi all, my query is i need to filter some of the data values from a list box.

for example , i hav a field ,

Product code

A xx

A

Byy

B

Cz

C

D xx

E xx

So, i need to filter only the data values which consists of 'XX' eg.(A xx, D xx, E xx) , do you any idea , which function to use to filter the data value..?

1 Solution

Accepted Solutions
johnca
Specialist
Specialist

Try this...

=If(WildMatch([Product Code],'*xx'),Null(),[Product Code])

Note the close parens after the '*xx'.

--john

View solution in original post

9 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Type *xx in the search box of the listbox. If you want the listbox to never show the other values then use an expression instead of the field name for the listbox: =if(wildmatch([Product code],'*xx'), [Product code]).

edit: try this =if(wildmatch([Product code],'*xx'),null(),[Product code])


talk is cheap, supply exceeds demand
rabbani_sk
Contributor III
Contributor III
Author

Hi,

Thanks for your reply Gysbert , but my question is not to show the  product code with 'XX',

johnca
Specialist
Specialist

Try this...

=If(WildMatch([Product Code],'*xx'),Null(),[Product Code])

Note the close parens after the '*xx'.

--john

rabbani_sk
Contributor III
Contributor III
Author

Thank you gysbert

rabbani_sk
Contributor III
Contributor III
Author

Hi john,

its working,

Thanks for your reply

johnca
Specialist
Specialist

Gysbert deserves some credit too. All I did was find the syntax error in his solution.

John

paulyeo11
Master
Master

hi john

i unable to find any diff between yr and gysbert. it is wild match , the w and m need big cap ?

johnca
Specialist
Specialist

Gysbert edited his initial response, and it is now correct too. His initial solution was correct except he forgot a close parenthesis. I saw that and added it. I capitalize words in functions to better see them, that's all. Both are identical in effect and either solution works the same.

Not applicable

Nice one guys.. Helpful