Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
raju_insights
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

May be check the link out:

How to Rename Fields