Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

giving alias to columns

Hello

got a table whose fields are the following:

 

TYP
NUM
CPY
FCY
JOU
FIY
PER

and there is another table that holds the aliases for each column above as follows:

  

TYPType de pièce
NUMNuméro de pièce
CPYSociété
FCYSite
JOUJournal
FIYExercice
PERPériode

is there a way to give aliases in the load statement without hardcoding; something like
load

TYP as applymap('mappng_table',name) ....

kindly advise

I can walk on water when it freezes
1 Solution

Accepted Solutions
Frank_Hartmann
Master II
Master II

Something like this should work:

Map:

Mapping LOAD * INLINE [   

    TYP, Type de pièce

    NUM, Numéro de pièce

    CPY, Société

    FCY, Site

    JOU, Journal

    FIY, Exercice

    PER, Période

];

tmp:

Load * Inline [

TYP, NUM, CPY, FCY, JOU, FIY, PER

]; RENAME Fields using Map;

hope this helps

View solution in original post

2 Replies
Frank_Hartmann
Master II
Master II

Something like this should work:

Map:

Mapping LOAD * INLINE [   

    TYP, Type de pièce

    NUM, Numéro de pièce

    CPY, Société

    FCY, Site

    JOU, Journal

    FIY, Exercice

    PER, Période

];

tmp:

Load * Inline [

TYP, NUM, CPY, FCY, JOU, FIY, PER

]; RENAME Fields using Map;

hope this helps

ali_hijazi
Partner - Master II
Partner - Master II
Author

thank you

the RENAME Fields using Map is new to me !!

I can walk on water when it freezes