We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!Submit Feedback
Here is the new weekly challenge. The link to the solution for last challenge is HERE. For this challenge let’s look at ranking records when multiple records can have the same rank.
The objective is to determine the top 5 ranking based on the count, however since there are multiple rows with same count (similar to a round of golf) multiple people can be in the same place (Rank) if they have the same score.
We have listed this as a beginner challenge and I expect it will go very quickly for many of you. Let us know what you think, we are looking forward to hearing your feedback.
The solution has been uploaded.
I was able to get to the solution using only these three tools! I was a little surprised this worked since I did not specifically tell Alteryx to put a 1 in row one of the Rank column. It must have assumed that if row: -1 is the header, it would assign row 1 a value of 0? Maybe oversimplifying this but it is pretty cool to see all the different ways alteryx can handle this task!
A nice introduction to the "Tile" tool:
Solution! I tried to think outside the box on this one, there are certainly several simpler solutions already posted. But why keep things simple when you can overcomplicate things with a transpose and a cross-tab? 🙂
Note: I really really really wish there was a "Max/Min" tool. (Yes, I will be suggesting this.) Seems like more than a few of us are regularly accomplishing this by using 2-3 tools - Sort + Sample, or Sort + Select Record, or finding the max of a field using Summarize + Join back all the other fields you need + Filter to weed out the non-matches... It seems like there should be a tool that lets you pick the max or min of something based on a certain field without having to use 2-3 tools to get there. Even better if there was one that let you pick the Top N or the Bottom N (which Sample does), but WITHOUT having to sort/etc. first. If i am completely missing out on a single tool that already does this, please oh please do share! I feel like I'm going crazy with these 2-3 tool "find the max" workflows! 🙂
Solution: Transpose (Group by Count, Columns = First, Values = Count), Sort by descending Count, Select first 5, Add Ranking via RecordID, Cross-Tab to re-orient the results, Filter out NULL values, rename/reorder columns.