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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
kiara
Contributor II
Contributor II

Looking for similar expression in qlik

I am looking for similar expression in Qlik. In sql I used the following:

INSTR(lowercase({drugname}),'A') > 0 OR
INSTR(lowercase({drugname}),'B') > 0 OR
INSTR(lowercase({drugname}),'C') > 0 OR
INSTR(lowercase({drugname}),'D') > 0 OR
INSTR(lowercase({drugname}),'E') > 0 OR
INSTR(lowercase({drugname}),'F) > 0 OR
INSTR(lowercase({drugname}),'G') > 0 OR
INSTR(lowercase({drugname}),'H') > 0 OR
INSTR(lowercase({drugname}),'I') > 0 

I tried mixmatch, wildcard functions .But did get the whole list of drugs. please help.

Labels (1)
2 Replies
sidhiq91
Specialist II
Specialist II

@kiara  Could you please provide your exact requirement? Because we can replicate whatever you have written in SQL to Qlik. But to make it more effective we need to understand the requirement.

For Example your above SQL code can be converted in Qlikas below:

if(Index(Upper(Drugname),'A')>0,

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I would think this would work:

WildMatch(drugname, '*A', '*B*', '*C*',...)

I'm confused about the lowercase() function in your example. It seems to me that this converts drugname to lower case and would never match the upper case characters in your example.

-Rob