Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Vijaikrishna
Contributor
Contributor

Load script Replace comma separated ID with name values

I have field with ID values which is comma separated like 1.5,7,10. I need to replace the ID values with names like USA, Canada, Australia, Singapore. How can i do this in load script?

1 Reply
MayilVahanan

Hi @Vijaikrishna 

Try like below

Mapping
Load * Inline
[
ID, Country
1,USA
5,Canada
7,Australia
10,Singapore
];

Load Concat(Ctry, ',', ID) as Ctry;
Load ApplyMap('MapCtry', SubField(ID, ',')) as Ctry, ID Inline
[
ID
"1,5,7,10"
];

Replace with inline with ursource.

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