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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Solved

Solved

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Microwin.

Check the attachment and let me know,

Table1:

LOAD Unit,

     Multiplier

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet1);

Left join

Table2:

LOAD Month,

     Amount

FROM

Book2.xlsx

(ooxml, embedded labels, table is Sheet1);

NoConcatenate

Final:

Load *,

Multiplier* Amount as Operation

Resident Table1 where len(Unit);

Drop table Table1;

View solution in original post

5 Replies
tamilarasu
Champion
Champion

Hi Microwin.

Check the attachment and let me know,

Table1:

LOAD Unit,

     Multiplier

FROM

Book1.xlsx

(ooxml, embedded labels, table is Sheet1);

Left join

Table2:

LOAD Month,

     Amount

FROM

Book2.xlsx

(ooxml, embedded labels, table is Sheet1);

NoConcatenate

Final:

Load *,

Multiplier* Amount as Operation

Resident Table1 where len(Unit);

Drop table Table1;

gautik92
Specialist III
Specialist III

Load

...

...

Multiplier*Amount as New ,

resident Table1;

jonathandienst
Partner - Champion III
Partner - Champion III

The script from TamilArasuis correct, except that the join should be a default (full outer) join, because you have requested a cartesian product. Remove the 'left' keyword.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Kushal_Chawda

you need to perform Cross join between two tables to generate the each possible combination

Data:

LOAD * Inline [

Month, Amount

Jan,    101

Feb,    78

Mar,    68

Apr,    42

May,    43

Jun,    68

Jul,    118

Aug,    150

Sep,    132

Oct,    112

Nov,    122

Dec,    26 ];

join

LOAD * Inline [

Unit, Multiplier

415,    17

418,    25

423,    11 ];

Final:

noconcatenate

LOAD *,

Multiplier*Amount as Operation

Resident Data;

DROP Table Data;

tamilarasu
Champion
Champion

Thanks Jonathan