We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #111: Make a Weekly Challenge Dream Team!

8 - Asteroid


12 - Quasar

With a ranking macro I created for another task before, this was a quick one.





757 Challenges done by this team.

12 - Quasar

I did not make the cut but I did make the best team (after a sneaky handpick of ACEs that I'm certain is not in the spirit of things but DOMAIN KNOWLEDGE). 


@mceleavey, you can be Team Captain if you like this post.

17 - Castor
17 - Castor

Oooh, this was a fun one. I had to re-learn the Optimisation tool, which is a good thing.


So, first I created a rank using the multi-row to determine if others had the same number of challenge and assign the same rank.
I then joined to the second dataset using this rank:

I then created the fields required for the Optimisation tool, the upper and lower bounds and the type. These were straightforward as this is a binary type (selected or not) and therefore the upper bound is 1 and the lower is 0. Nice and simple and so far it was all coming back to me.

I then needed to create the three required streams for Optimisation, which was relatively straightforward once I could remember which was which. Eventually I decided to rename them so I wouldn't get confused, so the Author is the variable, this is the unique record identifier. The next is determining the coefficient, which the number you wish to maximise, in this case this is Challenges. I then simply selected the bounds and type.
For the second input (A anchor) you need to define the constraints. Here, we are limited by Price and number of people (8), so the variable, Price and upper bound (1) fields are selected.
Finally, I needed to create the constraints definition, so I just used a text input to determine the following:


These were then fed into the Optimisation tool:


This is where I had to remember how to configure the tool, but it is relatively easy once you know how, and what redundant phrase that is.


Once I had renamed the fields it was easy to map them accordingly.
I then simply took the S output from the tool, joined it back to the raw data, created a summary line and my results were as follows:



A total of 685 challenges.
Dream Team.

 So, easy once I got my head around the tool again having not used it since the Fantasy Football app of 2017.




8 - Asteroid

Reposting under my new user ID.

19 - Altair

solution attached

12 - Quasar
12 - Quasar

Maybe someday I will figure out the optimization tool without a bunch of help!

8 - Asteroid

Challenge #111

8 - Asteroid

Solution uploaded



Approached using the Optimization tool. I've never used this tool and I don't think I've ever tackled an Optimization problem before. Very interesting tool and I'm looking forward to using it more often! 

12 - Quasar


Tried it with the first logic I thought of but the answer came out low. I've known about optimisation tools and the logic behind them from an old course (but in excel, blergh), but hadn't gotten around to learning to configure them in Alteryx. So thanks to the link on page 1 to the baseball example! Time to go and find another optimisation challenge to cement what I learned!