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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

All possible combinations of values

Hi Experts,

Below is Data:

Purushothaman_0-1695701000348.png


Output:  To generate a table with all possible combinations of values from the original table. For example;

Purushothaman_2-1695701186982.png

I have attached the excel file for your reference.

Anyone, Please help!!

Thank you!!

 

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Load all column individually & then Join between them

try below

LOAD
Zone1
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone1,'-') or not IsNull(Zone1)
;

Join

LOAD
Zone2
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone2,'-') or not IsNull(Zone2)
;

Join

LOAD
Zone3
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone3,'-') or not IsNull(Zone3)
;

Join

LOAD
Zone4
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone4,'-') or not IsNull(Zone4)
;

Join

LOAD
Zone5
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone5,'-') or not IsNull(Zone5)
;

Join

LOAD
Zone6
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone6,'-') or not IsNull(Zone6)
;

 

PrashantSangle_0-1695703500666.png

 

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

3 Replies
PrashantSangle

Hi,

Load all column individually & then Join between them

try below

LOAD
Zone1
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone1,'-') or not IsNull(Zone1)
;

Join

LOAD
Zone2
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone2,'-') or not IsNull(Zone2)
;

Join

LOAD
Zone3
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone3,'-') or not IsNull(Zone3)
;

Join

LOAD
Zone4
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone4,'-') or not IsNull(Zone4)
;

Join

LOAD
Zone5
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone5,'-') or not IsNull(Zone5)
;

Join

LOAD
Zone6
FROM [lib://data/AS.xlsx]
(ooxml, embedded labels, table is Data)
where not WildMatch(Zone6,'-') or not IsNull(Zone6)
;

 

PrashantSangle_0-1695703500666.png

 

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 🙂
Purushothaman
Partner - Creator III
Partner - Creator III
Author

@PrashantSangle 
Thanks for your quick help and solution. I heard great about you!!

Cheers!!

BISquad
Contributor
Contributor

Hi, I think it will work having all the fields in one LEFT JOIN