Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude from List Box with 'NOT LIKE'

Hi everyone,

I'm trying to filter the values in a list box based on where the value is NOT LIKE 'INF'

The query works when I say  =if([ID] like '*INF*', [ID])

But it won't allow  =if([ID] not like '*INF*', [ID])

Can someone please help with the correct syntax?

Thanks!!


1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this simple one

=If(WildMatch([ID], '*INF*''), [ID])


Regards,

Jagan.

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

=if(wildmatch([ID], '*INF*'') > 0, [ID], '')

salto
Specialist II
Specialist II

Hello,

     maybe changing the "then" and "else" order, like this:

     =if([ID] like '*INF*', [Else value], [ID])

     Or maybe this:

     =if not ([ID] like '*INF*', [ID])

Hope this helps.

Not applicable
Author

Awesome thanks so much!! I changed it to

 

= if(wildmatch([HFL FSAM ID], '*INF*') <> 1,[HFL FSAM ID])

to exclude the blanks as well and it works perfectly!!

Thanks again for the super quick response!


jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this simple one

=If(WildMatch([ID], '*INF*''), [ID])


Regards,

Jagan.