Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

All the possible combination of 2 columns

User93
5 - Atom

Hi, I have two columns, e.g.

Name1Name2
Method1a
Method1b
Method2a
Method2b
Method2c
Method2d

I need to have all the combination of these two columns and the result should be:

Method1-a
Method 1-b
Method1 a-b
Method2 a
Method2 b
Method2 c
Method2 d
Method2 a b
Method2 a c
Method2 a d
Method2 a b c and so on. Is this possible? Thanks.
5 REPLIES 5
BrandonB
Alteryx
Alteryx

Branch off the data set into two summarize tools. Group by the first column in one summarize tool and group by the second column in the other summarize tool. This gives you a unique list of every value in both columns. Then use the append tool to append the output of one summarize tool to the other. This will create the combination of each value pair. 

 

BrandonB_0-1670255225290.png

 

User93
5 - Atom

Hi, this gives me only  the first two, but I need all the possible combination, so also Method 1-a-b

Method1-a
Method 1-b
Method1 a-b
KSowers
Alteryx
Alteryx

Would you also need Method1 b-a?

User93
5 - Atom

Hi, no, I have that in the other table.

KrishnaChithrathil
11 - Bolide

@User93 

Will this help you anyway? Donno how your actual data would look like. 😀

KrishnaChithrathil_1-1670407543173.png

KrishnaChithrathil_0-1670407444759.png

 

 

Labels
Top Solution Authors