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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rename data when loading

Hi all!

Is it possible to rename values coming from load statement ? for exemple:

Load

Countries,

cities

from location where match(Countries, 'US', FR, 'EN');

I want to rename when I will create a listbox with the field 'countries', 'US' by 'Etats-Unis', 'FR' by 'France' ...

thanks,
Aziz

3 Replies
Anonymous
Not applicable
Author

Hi Aziz,

I would suggest creating a "Mapping table" (see F1-help or reference manual for syntax) and then use the ApplyMap() function in this load statement to map the Countries values against the values from the mapping table.

Not applicable
Author

Hi Aziz,

I hope you have to use a mapping load here for a solution. Just try out my code and see whether you are getting your desired output.

Map1:

Mapping Load * inline

[

x,y

US, Etats-Unis

FR, France

EN,England

];

Map Countries using Map1;

Data:

Load

Countries,

cities

from location;

Thanks Joseph............

Not applicable
Author

Thanx to all!

Joseph I get the result I disired with your code.

Regards