In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Get all permutation of elements of an array

Khanzali007
8 - Asteroid

Dear Team,

 

I'm struggling to get all possible combinations of each value. I need to create a list of all possible combinations of values for each.  Below is an example of the input and the expected output. Any suggestions on how I could solve this?

 

Input

C1C2C3C4C5C6C7
MismatchOKOKOKOKOKOK

 

Output

C1C2C3C4C5C6C7
OKOKOKOKOKOKOK
MismatchMismatchMismatchMismatchMismatchMismatchMismatch
MismatchOKOKOKOKOKOK
MismatchMismatchOKOKOKOKOK
MismatchMismatchMismatchOKOKOKOK
MismatchMismatchMismatchMismatchOKOKOK
MismatchMismatchMismatchMismatchMismatchOKOK
MismatchMismatchMismatchMismatchMismatchMismatchOK
MismatchMismatchOKOKOKOKOK
MismatchMismatchMismatchOKOKOKOK
MismatchMismatchMismatchMismatchOKOKOK
MismatchMismatchMismatchMismatchMismatchOKOK
MismatchMismatchMismatchMismatchMismatchMismatchOK
MismatchMismatchMismatchMismatchMismatchMismatchOK

 

And go on, till all the possibilities are completed.

2 REPLIES 2
binuacs
21 - Polaris

@Khanzali007 one way of doing this with python 

image.png

 

Khanzali007
8 - Asteroid

Thanks

Labels
Top Solution Authors