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!
Free Trial

Cloud Quests

Elevate your workflow skills by solving real-world challenges using the Alteryx Analytics Cloud Platform.

Cloud Quest #32: Pony Permutations

AYXAcademy
Alteryx
Alteryx

 

Hi Community,

 

We posted the solution JSON file to Cloud Quest #31. Check it out and let us know what you think! Send suggestions to academy@alteryx.com or leave a comment below!

 

 

Let’s dive into this week's quest!

 

  1. Download the provided JSON file containing your starting data and workflow files.
  2. Upload the provided Cloud Quest 32 Start.json file into your Analytics Cloud library.
  3. All necessary datasets are contained within Text Input tools in the workflow.

For more detailed instructions on how to import and export Designer Cloud workflow files, check out the pinned article Cloud Quest Submission Process Update.

 

AI Horse Race.png

Scenario:

 

A race is being held between four horses. For this week's Cloud Quest, your task is to create an output table of every possible combination of race finishes. No horse should be able to finish in more than one place, but be warned there are two different mustangs named Sally in this race!

 

Extra Credit: Make your workflow dynamic so it can account for any number of horses.

 

If you find yourself struggling with any of the tasks, feel free to explore these interactive lessons in Alteryx Academy for guidance:

 

Once you have completed your quest, go back to your Analytics Cloud library.

  • Download your workflow solution file.
  • Include your JSON file and a screenshot of your workflow as attachments to your comment.

 

Here’s to a successful quest!

 

- The Academy Team

 

 

Download Start File | Download Solution File

Qiu
21 - Polaris
21 - Polaris

I am the first again?
I wonder we need a macro for the dynamic approach, and I do hope someone can enlight me the approach without a Macro.

Spoiler
Cloud_Quest_32.png
alexnajm
18 - Pollux
18 - Pollux

@Qiu I'm in the same boat - no idea how to do macros in cloud yet so this is what I got for now - it is dynamic except for the number of Appends

Spoiler
cloud quest 32.png
Carolyn
12 - Quasar
12 - Quasar

Part 1 solved, but I'm with @Qiu and @alexnajm on Confusion Island for part 2

 

Part 1: 

Spoiler
Part 1 (I changed the Sallys to Sally1 and Sally2 while I was trying to solve part 2, but you can see the RowID Tool in Part 1 which properly handles the duplicates)
2025-04-18_15-50-25.png

Part 2:

Spoiler
For Part 2, I can figure out how many combos there are by doing a factorial. 4! = 24. If there were 5 horses, then there are 120 combos. 

From there, I tried doing the Generate Rows to get me 24 lines. Or I took the 4 horses and then generated rows to get 24 * 4 = 96 rows. But then I couldn't figure out how to rearrange the horses properly

2025-04-18_15-49-49.png

 

I could figure out the first place horse by doing some type of variation of taking total combos divided by total horses (24 / 4 = 6) and then seeing if the ComboID was less than 6 (Horse1 was first), 6-12 (Horse2 was first), 13-18 (Horse3), or 19-24 (Horse4). But then when I tried to find patterns for the 2nd-4th+ places (e.g. if you divide something by something, if the mod is something then that means Horse2 is 2nd), nothing jumped out at me, but that could just be because of how I visualized the patterns

2025-04-18_15-52-50.png

 

When I Googled, the only answers I found were recursive/iterative

I'll keep thinking on it but I am stumped!

 

Qiu
21 - Polaris
21 - Polaris

@Carolyn  @alexnajm 
Glad or sad? 😁 we are in the same boat. 

AkimasaKajitani
17 - Castor
17 - Castor

I'm also in the same boat.

 

Spoiler
image.png

 

alexnajm
18 - Pollux
18 - Pollux

@Qiu I think both! 😂

 

@Carolyn & @AkimasaKajitani as well

ggruccio
ACE Emeritus
ACE Emeritus

I couldn't think of the bonus solution without macros, so just completed the basic solution.

 

Spoiler
Screenshot 2025-04-21 084816.png
RWvanLeeuwen
11 - Bolide

here's my take (brute force approach, and I select the unique solutions only)

Spoiler
Cloud Quest 32 RWvL.png
CoG
14 - Magnetar

@Qiu @alexnajm @AkimasaKajitani @Carolyn @ggruccio @RWvanLeeuwen 

Here is a dynamic solution to this problem 😁

 

Screenshot.png

 

Happy Solving, Everybody!!!