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!
For more detailed instructions on how to import and export Designer Cloud workflow files, check out the pinned article Cloud Quest Submission Process Update.
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.
- The Academy Team
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.
Part 1 solved, but I'm with @Qiu and @alexnajm on Confusion Island for part 2
Part 1:
Part 2:
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
When I Googled, the only answers I found were recursive/iterative
I couldn't think of the bonus solution without macros, so just completed the basic solution.
here's my take (brute force approach, and I select the unique solutions only)
@Qiu @alexnajm @AkimasaKajitani @Carolyn @ggruccio @RWvanLeeuwen
Here is a dynamic solution to this problem 😁
Happy Solving, Everybody!!!