Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Assigning work schedule by preference and seniority

e105491
5 - Atom

Hi, I am pretty new to Alteryx so I am quite lost on how to get started here. I've been told I probably need to use a batch macro, but I am wondering if it should actually be an iterative macro?

 

I have two inputs. The first is a list of employee's 'bids' for the work schedule they want to get (represented by line numbers). This is pulled from an ODBC database and has a workflow already to get it into this a format like this:

Order of PreferenceID NumberNameSchedule LineAM or PMSeniority Number
15555John Doe3AM1
25555John Doe3PM1
35555John Doe6AM1
19999Jane Smith2PM15
29999Jane Smith2AM15
39999Jane Smith5PM15
49999Jane Smith6PM15

 

The second input shows the work schedules available and how many slots are available in each work schedule. This is just a manual text input. 

Schedule LineAM or PMSlots Available
1AM4
1PM6
2AM4
2PM6

 

I need to assign a work schedule by seniority and preference. So John being seniority #1 would get his first choice, but Jane being seniority #15 might not get her first choice if all of line 2's PM slots have been filled. I have thousands of 'bids' to assign.

 

Thank you!

0 REPLIES 0
Labels