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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
reivax31
Partner - Creator III
Partner - Creator III

NOT LIKE

Hi Qlikers,

I'm loading a Table and based on the informations I have in the field 'comment' I would like to build a new field Status.

LOAD

comment,

if(comment like '*Test*', 'Test',

if(comment like '*Blocked*', 'Blocked',

if(comment NOT LIKE '*check*' and NOT LIKE '*analyse*', 'To be checked',

if(comment like ......))))  AS Status

From ...

Thanks for your help

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Not Wildmatch(comment, '*check*','*analyse*')


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Not Wildmatch(comment, '*check*','*analyse*')


talk is cheap, supply exceeds demand
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Use the wildmatch function.

if(Wildmatch(comment,'*Test*'), 'Test',

if(Wildmatch(comment,'*Blocked*'), 'Blocked',

...............

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
sunny_talwar

And if you insist on using LIKE, you can try this:

if(not comment LIKE '*check*' and not comment LIKE '*analyse*', 'To be checked',

reivax31
Partner - Creator III
Partner - Creator III
Author

It worked perfectly! thanks for your help

reivax31
Partner - Creator III
Partner - Creator III
Author

Thanks for this solution