Hi there,
I'm looking at doing an NHL or NBA style regular season fixture for an online league where each player takes one of the team names. I want to be able to create a fixture/schedule that is similar to that of the NHL or NBA. For instance, 32 teams across 4 divisions in two conferences. I'm not entirely sure how these leagues do their fixturing but something basic like:
For a total of 50 games for each team.
Is there a way to use Alteryx to generate this? I wouldn't need it split by round or anything but just making sure each team plays that number of games would be pivotal. Has anybody tried this before?
Thanks!
Solved! Go to Solution.
I feel like I am really close, but I am seeing 53 as the total game count for each team. Basically I append the teams together then dedupe the situations where team 1 plays team 2 vs team 2 plays team 1 scenarios. Then I use the generate rows tool to create the corresponding number of games between teams.
Workflow is attached for you to take a look! If you want to get real fancy you could turn the append up until right before the generate rows tool into a macro because it is the same steps performed at each level.
For these two points:
Wouldn't everyone else in your conference be everyone in the other division? If this is the case and there are 8 teams in the other division, wouldn't that be 16 games?
Similarly, if you play everyone in the other conference once, wouldn't that also translate to another 16 games?
If that math checks out then it is 21+16+16 which is 53. If I missed something please let me know!
Ah yes, that sounds right @BrandonB ! Apologies, I was getting my numbers confused.
No worries! It was a fun evening Alteryx challenge. You can swap out the values in the Text Inputs in the team names and I think should be well on your way for setting up a schedule.
@BrandonB This solution worked and is really awesome. A more advanced question, is there a way of making sure that all teams have nearly a 50/50 split of home and away games? And also how would you then randomise it to evenly distribute the games throughout?