In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Obtain all possible combinations of values in 2 or more columns, NOT from a single column

Rob48
8 - Asteroid

Hi, i'm looking to create all possible combinations between two columns without including any combinations of values from the same column.

Here's a sample of what i'm trying to do:

 

Column 1Column 2
A1
B2
  
  
  
Desired Result 
A / 1 
A / 2 
B / 1 
B / 2 
1 / A 
1 / B 
2 / A 
2 / B 
  
  
  
Do not want 
A / A 
A / B 
B / A 
B / B 
1 / 1 
1 / 2 
2 / 1 
2 / 2 
  

 

 

the values are all strings not numbers, and they all have different lengths. I also need the " / " between each item.

 

Thanks!

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @Rob48 ,

 

I'm attaching an example showing how to get that done.

fmvizcaino_0-1579889384829.png

 

Let me know if is that what you are looking for.

Best,

Fernando Vizcaino

Rob48
8 - Asteroid

Thanks, that did it!

akshaydalvicia
7 - Meteor

How to do it when you have more than 2 columns with varying size of datasets within each column? How to get all the permutations?

Labels
Top Solution Authors