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: 
Not applicable

multiple left join

Dear all,

I have a one table like below

Part_IDCatalogue_ID
1101
2102
3103
4104
5105
6106
7107
8108
9109
10110

other table like

Part_IDCatalogue_IDQty
110130
10240
310350
10465
520
852
910945
1063

and I want something like below in staight table...

Part_IDCatalogue_IDSum(Qty)
110130
210240
310350
410465
510520
61060
71070
810852
910945
1011063

i have a script like

master:

LOAD Part, Catalogue_ID
FROM
C:\temp\BookQ1.xlsx
(
ooxml, embedded labels, table is Sheet1);

left join (master)
LOAD Part,
   
//Catalogue_ID,
     Qty
FROM
C:\temp\BookQ1.xlsx
(
ooxml, embedded labels, table is Sheet2);

left join(master)
LOAD
//Part,
Catalogue_IDQty
FROM
C:\temp\BookQ1.xlsx
(
ooxml, embedded labels, table is Sheet2);

but its not give me desire result.

Please help.

Vinay

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Part_ID 6 & 7 missing.

It does not display on Straight table even if check on "Show All values"

Disable the Suppress Zero-Values option on the Presentation tab.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Try this:

Temp:

LOAD * INLINE [

    Part_ID, Catalogue_ID, Qty

    1, 101, 30

    ,102, 40

    3, 103, 50

    ,104, 65

    5, , 20

    8, , 52

    9, 109, 45

    10, , 63

];

mapPC:

mapping LOAD Part_ID as K, Qty as V Resident Temp;

mapping LOAD Catalogue_ID as K, Qty as V Resident Temp;

Result:

NoConcatenate

LOAD *, ApplyMap('mapPC',Part_ID, ApplyMap('mapPC',Catalogue_ID,0)) as Qty INLINE [

    Part_ID, Catalogue_ID

    1, 101

    2, 102

    3, 103

    4, 104

    5, 105

    6, 106

    7, 107

    8, 108

    9, 109

    10, 110

];

drop table Temp;

You can replace the inline loads with load statements for your real data sources. The above is just an example.


talk is cheap, supply exceeds demand
Not applicable
Author

Dear Gysbert,

Part_ID 6 & 7 missing.

It does not display on Straight table even if check on "Show All values"

FYI: It display on Table Box but I want in Straight Table

Please help

Regards

Vinay

Gysbert_Wassenaar

Part_ID 6 & 7 missing.

It does not display on Straight table even if check on "Show All values"

Disable the Suppress Zero-Values option on the Presentation tab.


talk is cheap, supply exceeds demand
Not applicable
Author

It's work.

You are really a Legend.

Thank you so much.

Regards

Vinay