Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
hillarynyawate
Contributor III
Contributor III

use wildmatch on multiple rows in a column

How can i use wildmatch on multiple rows in a column

 

=if(wildmatch(column_name,'*Medic*'),'MEDICATION')
=if(wildmatch(column_name,'*Consult*'),'CONSULTATION')
=if(wildmatch(column_name'*Proc*'),'PROCEDURE')

 

Labels (1)
1 Solution

Accepted Solutions
HugoRomeira_PT
Creator
Creator

Hello,

You can achieve this using the Pick() and Wildmatch() functions.

Try the following: 

=Pick(wildmatch(column_name,'*Medic*','*Consult*','*Proc*'),'MEDICATION','CONSULTATION','PROCEDURE')

 

Hope it helps!

If the issue is solved please mark the answer with Accept as Solution.
If you want to go quickly, go alone. If you want to go far, go together.

View solution in original post

3 Replies
stevejoyce
Specialist II
Specialist II

Like this you're looking for?

=if(wildmatch(column_name,'*Medic*'),'MEDICATION'
 ,if(wildmatch(column_name,'*Consult*'),'CONSULTATION'
 ,if(wildmatch(column_name,'*Proc*'),'PROCEDURE')))

HugoRomeira_PT
Creator
Creator

Hello,

You can achieve this using the Pick() and Wildmatch() functions.

Try the following: 

=Pick(wildmatch(column_name,'*Medic*','*Consult*','*Proc*'),'MEDICATION','CONSULTATION','PROCEDURE')

 

Hope it helps!

If the issue is solved please mark the answer with Accept as Solution.
If you want to go quickly, go alone. If you want to go far, go together.
hillarynyawate
Contributor III
Contributor III
Author

@HugoRomeira_PT  Thanks man, it worked!