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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

There is a table having a country column. I need to filter out all the names like USA,US,U.S.A,and make them all US.How can we achieve it?

Hi,

There  is a table having a country column. I need to filter out all the names like USA,US,U.S.A,and make them all US.How can we achieve it?

Kindly provide the relevant solution.

Thanks,

Neel

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LOAD

*,

If(Match(Country, 'USA','US','U.S.A', 'US', Country) AS NewCountry

FROM DataSource;

Regards,

Jagan.

MayilVahanan

HI

Try with Mapping and apply map concept like this

MappingTemp:

Mapping Load  * inline[

Countryname, Country

U.S.A, US

USA, US

US, US

];

Load ApplyMap('MappingTemp', CountryName) as Country, * from tablename;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.