Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
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

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

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