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: 
qlikwiz123
Creator III
Creator III

Apply Map replace Field Values

Table A:

NameID
A1
B 
C5
D 
E7

 

Table B:

NameID
A20
B2
C99
D9
E7
F8
I10
J11
K15

 

Result:

NameID
A20
B2
C99
D9
E7

 

 

I want to replace and fill the null ID values from Table B in Table A.

 

NameIdMap:
Mapping Load Name, ID 
From TableB

Table_A:
Load Name,
if(len(ID) > 0, ID, ApplyMap('NameIdMap', Name)) as ID
From TableA

 

I tried this but this does not replace ID values in TableA with the values in Table B

Labels (1)
11 Replies
Saravanan_Desingh

Further simplified.

Mapper:
Mapping
LOAD * INLINE [
    Name, ID
    A, 20
    B, 2
    C, 99
    D, 9
    E, 
    F, 8
    I, 10
    J, 11
    K, 15
];

tab1:
LOAD Name, Alt(ApplyMap('Mapper',Name,ID),ID) As ID INLINE [
    Name, ID
    A, 1
    B,  
    C, 5
    D,  
    E, 7
    Z, 88
];