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: 
jvelasqu3
Contributor
Contributor

Get all possible combinations

Hi All, 

I would like to obtain all possible combinations between two variables.
I currently have 2 variables, Names and Cities
Table 1:
Name1
Name2
Name3

Table 2:
City1
City2
City3

The final table should be:
Name City
Name1 City1
Name1 City2
Name1 City3
Name2 City1
Name2 City2
Name2 City3
Name3 City1
Name3 City2
Name3 City3

 

I'd greatly appreciate some insight on how to deal with this in QlikSense.

Many thanks,

Labels (1)
1 Solution

Accepted Solutions
PrashantSangle

Hello,

do cross join

Final:

Load Name from table1;

Join

Load City from table2;

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

2 Replies
PrashantSangle

Hello,

do cross join

Final:

Load Name from table1;

Join

Load City from table2;

 

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
MayilVahanan

HI

Load Name from table1;

Join

Load City from table2;

it will become cartesian product and give expected values. 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.