community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.

Challenge #144: Secret Santa Assignments (BAH HUMBUG!)

Alteryx
Alteryx

When I first saw the challenge my immediate thought was iterative macro but then I thought there must be an easier way...Here goes.

 

Spoiler
wc144.png

I'm just getting started with Alteryx but the simplest solution I could think of was to sort the records by Scroogieness level, sample the bottom and top 25 separately, reverse the order of the last 25 records (the ones with the highest Scroogieness level) and then join by record position. 

This is very similar to my solution. You can also take out the "Record ID" tool as the email addresses can act as unique identifiers if you need them to.  Test.png

Alteryx
Alteryx

Here is a dynamic solution if the number of individuals increases or decreases.

 

Spoiler
1.PNG

Best,

Jordan
Alteryx
Alteryx

Here is my solution...of course it could be build even with less tools, but whenever I built something, I usually try to think as much automation as possible whenever new source data would come in. So in this case I built this solution in the way, that it does not matter how many records would be fed in, it should always work as it takes 50% of the data.

 

Spoiler
grafik.png

 Little like Jordans, just without a Batch Macro..

 

 

 

Atom

here you go!

Atom

Or just 4 :-)

 

Spoiler
4.png

 

 

My Solution:

Alteryx Certified Partner

Challenge #144: Secret Santa Assignments done :)

Spoiler
144.png144 workflow
Asteroid

Maybe Ebenezer Scrooge would appreciate the expect zero tool that I used as part of the error checking process.

Spoiler
WC144 Secret Santa.png