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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rajuamet
Partner - Creator III
Partner - Creator III

Dynamic Field Name!

Hi Techies,

I have a list of field names and their alias names.

  

RISK_SCORE_FIELD_NAMEActual_Field_Name
F1SLNUM
F7SEP16
F10OCT16
F13NOV16
F16DEC16
RiskRisk
Threshold 1Threshold 1
Threshold 2Threshold 2
WeightWeight

I will concat RISK_SCORE_FIELD_NAME records and store it in a variable to load the respective fields from a Source table.

For Example:

LET vFieldList = '[' & peek('RISK_SCORE_FIELD_NAME') & ']';

Data_Source_Filtered:

LOAD

    $(vFieldList)

FROM

SOURCE_TABLE ;

But, after loading I need to rename these fields with the records from 'Actual_Field_Name'.

How do I achieve this.

2 Replies
rahulpawarb
Specialist III
Specialist III

Hello Rangaraju,

Please try using Alt(expr1 { ,Expression}) function.

Thank you!

Rahul

sunny_talwar
MVP
MVP

May be check the link out:

How to Rename Fields