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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Join ?

Hi all,

i have two tables:

Table A:

NameCountry
JohnFinland
MikeItaly

Table B:

Country

Finland
Italy
Sweden

What i want is to JOIN the two tables and have one record for every compination of Name and Country:

Result:

NameCountry
JohnFinland
JohnItaly
JohnSweden
MikeFinland
MikeItaly
MikeSweden

Thanks a lot for some advise.

K

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

If you just load Name in Table A (and not Country), and then join Country in Table B and join, QlikView will create a cartesian product, i.e. every combination of the two tables so you'll get all country values for each Name.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

If you just load Name in Table A (and not Country), and then join Country in Table B and join, QlikView will create a cartesian product, i.e. every combination of the two tables so you'll get all country values for each Name.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this script

Test:

LOAD * INLINE [

Test1

a

b

];

join

LOAD * INLINE [

Test3

x

y

z

];

Regards,

Jagan.

jagannalla
Partner - Specialist III
Partner - Specialist III

Hello,

Try this:

TableA:

Load Name from TableA;

Join

Load Country from TableB:

See the result in tablebox with fields Name and Country

Hope it helps you

Cheers!!

Jagan