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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
debabrata_sahoo
Contributor III
Contributor III

How to Get data user prefered data?

Hello everyone, Please help me in below requirement . How i will do it in join.  After join with preceding load or resident load its is possible but here i need with out it.

SOURCE

Table1
 
C_Code
1
2
3
4
5
6
7
8
9

 

Table2 
  
C_CodeC_Group
1A
2B
3C
4A
5C

 

output

OutputTable 
  
C_CodeC_Group
1A
2B
3C
4A
5C
6A
7A
8A
9A
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this:

mapCode2Group:
MAPPING LOAD 
    C_Code, C_Group
FROM
    SourceTable2
    ;

Output:
LOAD C_Code, ApplyMap('mapCode2Group',C_Code, 'A') as C_Group FROM SourceTable1 ;

talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps like this:

mapCode2Group:
MAPPING LOAD 
    C_Code, C_Group
FROM
    SourceTable2
    ;

Output:
LOAD C_Code, ApplyMap('mapCode2Group',C_Code, 'A') as C_Group FROM SourceTable1 ;

talk is cheap, supply exceeds demand