Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Check for a word and identify similar word

Hi Friends,

Kindly help me out with below case.

My data is as below.

   

Org. NameMatchCase
Award1
Star2
Certificate3
Appreciation4
Match5

My output should be

   

Org. NameMatchCase
Award1
Awards1
Star2
Stars2
Certificate3
Certificatee3
Appreciation4
Appreciation s4
Match5
Match es5

Here my intension is, qlikview script should treat the similar words(ex: Award/Awards) as same MatchCase. Is there a way to achieve this. Plz help.


Thanks,

Raghav

11 Replies
Anonymous
Not applicable
Author

Both are helpful. thank you.

sumitjadhav
Creator II
Creator II

Hi Ragav,

I had Used Wildmatch To Resolve your issue,Please try the below code,

data:

LOAD [Org. Name] as Name,

     MatchCase

FROM

[path);

data2:

load

Name,

if(wildMatch(Name,'Aw*'),1,

if(wildMatch(Name,'S*'),2,

if(wildMatch(Name,'*Certificate'),3,

if(wildMatch(Name,'Ap*'),4,

if(wildMatch(Name,'*Match'),5,))))) as New_case

Resident data;

DROP Table data;

Output is:

matchissue.JPG

Hope that it is helpful.

Thanks & Regards,

Sumit Jadhav.