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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Matching text to concatenated text

I have a variable Doctor1 that contains the following text : DR. X,DR. Y. I am trying to compare the variable to a table field using the below but it isn't working:

=if(mixmatch(ATTENDING_NAME , (Doctor1)),2)

Can anybody assist please?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Mixmatch() is exact match(case insensitive) function. For your case, you have to use wildmatch() or substringcount() or index(). Try like:

if(Index('$(Doctor1)' ,ATTENDING_NAME ),2)

Note: to take care of case insensitivity, use for both strings upper()/lower().

View solution in original post

11 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use this syntax:

=if(mixmatch(ATTENDING_NAME , $(Doctor1)),2)


Let me know

Not applicable
Author

No result Capture.JPG.jpg

maxgro
MVP
MVP

the variable should be

'DR. X','DR. Y.'

Not applicable
Author

The variable can hold different doctor names depending on the user selection.

tresesco
MVP
MVP

I guess you need:

=if(mixmatch('$(Doctor1)' ,ATTENDING_NAME ),2)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this, you need to give single quotes for variable, since it is a string.

=if(mixmatch(ATTENDING_NAME , '$(Doctor1)'),2)


Regards,

Jagan.

Not applicable
Author

I entered the following expression but still getting no values:

if(mixmatch('$(Doctor1)' ,ATTENDING_NAME ),2)

Capture.JPG.jpg

jagan
Partner - Champion III
Partner - Champion III

Hi Nassar,

Try like this

=if(Index(Upper(ATTENDING_NAME ) , Upper(Doctor1)),2)

Regards,

Jagan.

tresesco
MVP
MVP

Mixmatch() is exact match(case insensitive) function. For your case, you have to use wildmatch() or substringcount() or index(). Try like:

if(Index('$(Doctor1)' ,ATTENDING_NAME ),2)

Note: to take care of case insensitivity, use for both strings upper()/lower().