Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Iterative Pony Permutations

keith_wonghy
5 - Atom

Hi all,

 

Expanding on the Pony Permutations challenge,

https://community.alteryx.com/t5/Weekly-Challenge/Challenge-270-Pony-Permutations/td-p/766962

 

I'm trying to build an iterative macro that generates every possible combination of race finishes for not just one race but a list of races (in some races, there may also be less than 4 horses competing):

 

I have not been successful so far, would really appreciate if someone can show me how. I'm not able to upload my files here due to policy restrictions (I'm using a company laptop)

 

Input:

 Horse1Horse2Horse3Horse4
Race 1SallyElmerSallyMr. Ed
Race 2BojackRoger  
Race 3PegasusTroyDrogon 
Race 4QueenaSpiritDonkeyMaximus

 

This is the result that i'm looking to have:

 FirstSecondThirdFourth
Race 1SallyElmerSallyMr. Ed
Race 1SallyElmerMr. EdSally
Race 1SallySallyElmerMr. Ed
Race 1SallySallyMr. EdElmer
Race 1SallyMr. EdElmerSally
Race 2BojackRoger  
Race 2RogerBojack  
Race 3PegasusTroyDrogon 
...............

 

 

 

1 REPLY 1
Christina_H
14 - Magnetar

This was a fun challenge.  I think this should still work if you increase the number of horses in a race.

Labels
Top Solution Authors