Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to join 2 tables with all values of one table for all values of the other

Hi, 

I have two tables:

Customer
A
B
C
Periode
Jan-2013
Feb-2013
Mar-2013

and want to get this result:

CustomerPeriode
AJan-2013
AFeb-2013
AMar-2013
BJan-2013
BFeb-2013

Any idea how a script should look like. I was thinking to do it with a JOIN, but I don't find a solution.

Thanks for your help

1 Solution

Accepted Solutions
sunny_talwar

Seems like its working

Capture.PNG

Script I used:

Table:

LOAD * Inline [

Customer

A

B

C

];

Join (Table)

LOAD * Inline [

Periode

Jan-2013

Feb-2013

Mar-2013

];

View solution in original post

4 Replies
sunny_talwar

Where did C go??? or are you just showing partial output? From your description you seem to be looking for a Cartesian Product?

May be this:

Table:

LOAD Customer

FROM....;

Join (Table)

LOAD Periode

FROM.....;

Not applicable
Author

yes you are right, just a partial output.

I tried it, but it doesn't worked.

sunny_talwar

Seems like its working

Capture.PNG

Script I used:

Table:

LOAD * Inline [

Customer

A

B

C

];

Join (Table)

LOAD * Inline [

Periode

Jan-2013

Feb-2013

Mar-2013

];

Not applicable
Author

Yes, thank you.