Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
prashbhosale
Contributor
Contributor

Consider space for mapstring

Dear all experts 

Need advise on below

I have company names coming in and need output as below

ABC P Ltd - - Private limited

LMNOP LTD - -  Public limited 

i. e. When it is P separate from other words then Private Limited and if it is part of other word then Public Limited 

I have applied mapstring but its working on only for first case and not other. 

Kindly suggest 

 

Labels (2)
1 Reply
micheledenardi
Specialist II
Specialist II

Is there a particular reason why you're using mappings and not a simple wildmatch?

Load
if(WildMatch(CompanyName,'* P *'),'Private Limited','Public Limited') as CompanyType
From ....
Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.