Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #270: Pony Permutations

mike_w
8 - Asteroid

Is it fair to use the python module for this? I will say YES, because 1. why not use those (limited!) python skills where you can and 2. I already had a template for permutations and combinations in Alteryx, so this only needed minimal adjustments.. 

Spoiler
mike_w_0-1622594906872.png

 

mst3k
11 - Bolide

not being a python user myself (yet!), this is very helpful to see in action!

OllieClarke
15 - Aurora
15 - Aurora

Here's my solution:

Spoiler
If there were 5 horses, then there'd be 120 possible outcomes (n!)
OllieClarke_0-1622630944120.png

 

alexnajm
16 - Nebula
16 - Nebula

Solution attached. It is just a factorial for n number of horses, so 5 horses means 120 combinations (5 x 4 x 3 x 2 x 1) 😊

balajilolla
8 - Asteroid
Spoiler
Solution Attached

balajilolla_0-1622640231160.png

 

binuacs
20 - Arcturus
Spoiler
binuacs_0-1622642042372.png

 

j_christian
7 - Meteor

Here's my solution and extra-credit solution.

 

Spoiler
Extra credit: The number of horse races is the factorial of the number of horses involved.
Jonny
11 - Bolide

Not very pretty but solved nevertheless 🙂 

TonyA
Alteryx Alumni (Retired)

Brings back memories. Only went to three Belmont Stakes races when I lived in New York, but did see one Triple Crown win.

Spoiler
TonyA_0-1622663398590.png

 

Qiu
20 - Arcturus
20 - Arcturus

Tried with an iterative macro.

Spoiler
challenge_270.PNG