Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event 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
20 - Arcturus

@Khanzali007 one way of doing this with python 

image.png

 

Khanzali007
8 - Asteroid

Thanks

Labels