Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Fred12
Contributor III
Contributor III

Concatenate with a inner keep

Hello, I got 2  tables like that :

 

             TABLE A                                                 TABLE B                                         TABLE C 

ID_TABLE A       CODE                               CODE           NAME                  CODE           NAME  2  

1                            AZEZ                                AZEZ            JON                       AZEZ           YON

2                          AEDF                                  AEDF           SIEM                      GGHHJ      TIM

3                         TTTY                                  TTTY              JOH                       TTTY          TOTO

                                                                                                                                 FFLG          TITI

 

I do easily : 

 

TABLE A :

qualify *;

unqualify [ID *];

load * from table A

Unqualify *;

 

qualify *;

unqualify [ID *];

LEFT KEEP( TABLE A)

TABLE B :

LOAD * from table B

Concatenate (TABLE B)

LOAD * from table C

unqualify *;

 

 

I would like got 1 table with  table A and  an other table  with :

tableB.Code    

tableB.NAME

tableB.NAME2

 

But I have it : 

tableB.Code

tableB.NAME

tableB-2.NAME

 

so why my 2 tables B AND C   can't concatenate properly ?

 

Thx in advance

 

Labels (3)
1 Reply
neerajthakur
Creator III
Creator III

neerajthakur_0-1678465001745.png

Do you want this?

[Table1]:
Load * Inline [
ID,CODE
1,AZEZ
2,AEDF
3,TTTY
];

[Table2]:
Load * Inline [
CODE,NAME
AZEZ,JON
AEDF,SIEM
TTTY,JOH
];

[Table3]:
Load * Inline [
CODE,NAME2
AZEZ,YON
GGHHJ,TIM
TTTY,TOTO
FFLG,TITI
];

TABLE_A :
qualify *;
unqualify ID;
load * Resident Table1;
Unqualify *;

// Drop Table Table1,Table2,Table3;
// Exit Script;

// qualify *;

// unqualify [CODE];

LEFT KEEP(TABLE_A)
TABLE_B :
LOAD * Resident Table2;
Concatenate (TABLE_B)
LOAD * Resident Table3;

// unqualify *;

Drop Table Table1,Table2,Table3;

Thanks & Regards,
Please Accepts as Solution if it solves your query.