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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
imoratal
Creator
Creator

PROBLEM WITH EXPRESSION

I have a table Name Value
A 1
B 2
C 3
how I can do that with an IF if I have another table where it says A or B or C type your value?

1 Reply
boorgura
Specialist
Specialist

you can simply use mapping in this case:

MapTable:

mapping load * inline [

x,y

A,1

B,2

C,3

];

Fact_table:

LOAD
applymap('MapTable', <field_name>) as field_name

from filename.qvd (qvd);

where field_name is the field which has values A/B/C and needs to be mapped to 1/2/3.