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: 
Not applicable

Not Like is returning garbage in qlikview editor

Good Afternoon, I am writing a script in the qlikview editor and I am trying to execute the code below. Basically What I am trying to do is to filter out any patterns that starts with Deu. I tried using NOT LIKE but I recieve an error saying that the statement is garbage after the where. Any ideas will be grateful!


External:
Load to_UUID,
to_AccountName as externals
Resident Recipients
where to_AccountName NOT LIKE '%Deu%';


1 Solution

Accepted Solutions
prieper
Master II
Master II

Hi,

the wildcard in QV is usually *, not the %.

am not sure on the usage of the LIKE, have you tried

WHERE NOT to_AccountName LIKE '*Deu*'

Alternatively

WHERE NOT WILDMATCH(to_AccountName, '*Deu*')

HTH

Peter

View solution in original post

2 Replies
prieper
Master II
Master II

Hi,

the wildcard in QV is usually *, not the %.

am not sure on the usage of the LIKE, have you tried

WHERE NOT to_AccountName LIKE '*Deu*'

Alternatively

WHERE NOT WILDMATCH(to_AccountName, '*Deu*')

HTH

Peter

Not applicable
Author

Hey Peter,

Thanks, the statement: WHERE NOT to_AccountName LIKE '*Deu*' worked!

Many thanks,

Samuel