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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
MK25
Contributor
Contributor

Concatenate table and left join

Hi,

I'm struggling with creation one big table. I have 4 tables (A, B, C and D). Tables A and B mast be concatenaded. Tables C and D- also must be concatenated and then i would like left join bolth concatenaded tables. example: (A concatenate B) Left Join (C Concatenate D).

Any ideas? All help in greatly appreciated.

A:
LOAD
ID,
Value,
Item
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is P2021);

B:
LOAD
ID,
Value,
Item
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is P2022);

C:
LOAD
ID,
Year,
Customer
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is G2021);

D :
LOAD
ID,
Year,
Customer
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is G2022);

 

 

 

Labels (1)
4 Replies
vikasmahajan

Hi,

You can try like this :


Fact:
//A:
LOAD
ID,
Value,
Item
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is P2021);
Concatenate
//B:
LOAD
ID,
Value,
Item
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is P2022);
left join(Fact)
//C:
LOAD
ID,
Year,
Customer
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is G2021);
Concatenate
//D :
LOAD
ID,
Year,
Customer
FROM [lib://Testno:DataFiles/Uvoz Qlik.xlsx]
(ooxml, embedded labels, table is G2022);

 

Hope this help you.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
MK25
Contributor
Contributor
Author

Thank you, but something go wrong. When I create table (Analyze/Edit sheet/Table) I get next result:

 

MK25_0-1642764890936.png

I marked only two problematic example. Any suggestions?

vikasmahajan

instead of left join can u try with outer join ? like  Outer join(Fact)

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
MarcoWedel

 

table1:
LOAD A
Concatenate
LOAD B

tabTemp:
LOAD C
Concatenate
LOAD D

Left Join (table1)
LOAD * Resident tabTemp;

Drop Table tabTemp;

 

 

hope this helps

Marco