Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
lawrance
Creator II
Creator II

Left join with Qualify in QlikView

Hi,

Please give me solution for this problem.

b:

LOAD ID,

     Category,

     group

FROM

(ooxml, embedded labels, table is Sheet2);

QUALIFY*;

a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (a)

LOAD * Resident b;

Actual Output:

a.ID,

a.Name

b-1.Category

b-1.group

Expected Output:

a.ID

a.Name

a.Category

a.group

Thanks,

Lawrance. A

1 Solution

Accepted Solutions
sunny_talwar

May be try like this:

Temp_a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (Temp_a)

LOAD ID,

     Category,

     group

FROM

(ooxml, embedded labels, table is Sheet2);

QUALIFY *;

a:

NoConcatenate

LOAD *

Resident Temp_a;

DROP TABLE Temp_a;

View solution in original post

5 Replies
sunny_talwar

May be try like this:

Temp_a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (Temp_a)

LOAD ID,

     Category,

     group

FROM

(ooxml, embedded labels, table is Sheet2);

QUALIFY *;

a:

NoConcatenate

LOAD *

Resident Temp_a;

DROP TABLE Temp_a;

its_anandrjs

Try this ways

b:

LOAD ID,

     Category,

     group

FROM

(ooxml, embedded labels, table is Sheet2);

QUALIFY*;

Unqualify ID;

a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (a)

LOAD * Resident b;

Regards

Anand

lawrance
Creator II
Creator II
Author

Thanks Sunny T

its_anandrjs

Or May be this also

b:

LOAD ID,

     Category,

     group

FROM

(ooxml, embedded labels, table is Sheet2);

QUALIFY*;

Unqualify ID;

a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (a)

LOAD * Resident b;

Rename ID to a.ID;

Regards

Anand

mikecrengland
Creator III
Creator III

or...

QUALIFY*;

a:

LOAD ID,

     Name

FROM

(ooxml, embedded labels, table is Sheet1);

Left join (a)

UNQUALIFY *;

LOAD ID AS a.ID,

     Category AS a.Category,

     group AS a.group

FROM

(ooxml, embedded labels, table is Sheet2);