The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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
Astéroïde

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.. 

Révélation
mike_w_0-1622594906872.png

 

mst3k
Bolide

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

OllieClarke
16 - Nebula
16 - Nebula

Here's my solution:

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

 

alexnajm
19 - Altair
19 - Altair

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
Astéroïde
Révélation
Solution Attached

balajilolla_0-1622640231160.png

 

binu_acs
Polaris
Révélation
binuacs_0-1622642042372.png

 

j_christian
Météore

Here's my solution and extra-credit solution.

 

Révélation
Extra credit: The number of horse races is the factorial of the number of horses involved.
Jonny
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.

Révélation
TonyA_0-1622663398590.png

 

Qiu
21 - Polaris
21 - Polaris

Tried with an iterative macro.

Révélation
challenge_270.PNG