Alteryx Designer Desktop Discussions

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

Resource Allocation based on availability and weight

jaimonsk
8 - Asteroid

Hi team,

 

I was working on a resource allocation based project.  We would need to perform allocation based on resource availability for the day.
Now the time taken for a particular task to be completed can be summarized to few set of values. Ex: 0.05, 0.10, 0.18, 0.22, 0.25 etc. (it  may change tomorrow, but for today, lets keep it this way. task weight would always be below zero as its decided based on some internal KPI's and we would having 100's of task generated every day as in the example)

The total availability for per person could be values like 7.5,7.6,5.6.5,3.2,1.3 etc. Always less than 8hrs per day.

 

Now my need is that using the first set of values (Its combination basically), we would need to allocate every task to each resource based on their availability for the day.


Attaching a sample data

 

Tasks list (100's of tasks would be there in a similar format)

TaskHours req
A0.05
B0.1
C0.22
D0.22
E0.05
F0.05
G0.15
H0.22

 

Resource list (There would be like 10,15 resources)

ResourceAvailability for the day
P12.5
P23.67
P35.3

 

The task list would always have those amount of tasks less than total availability for the day (i.e., sum of hrs in 1st table would always be less than or equal to 11.47 as per the availability in table 2.)

 

Can somebody help me on this, Thank you 🙂

3 REPLIES 3
AZuc
Alteryx
Alteryx

@jaimonsk 

See if this workflow helps you.

 

This is basically an iterative macro type of problem. The thing about these macros is that only one input is iterative. In your case, you need to iterate both, so I had to do a trick to deal with it.

 

Anyway, See if you understand the ideas behind the macro and change it to address your needs.

 

 

 

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


jaimonsk
8 - Asteroid

Perfect!

Thanks @AZuc  My head was going round with some combination of batch + iterative which clearly didn't need. Thank you so much for your time (y)
I'm still going through the flow now. Between, could you help me to understand how did you iterate both the datasets together?

AZuc
Alteryx
Alteryx

Hi @jaimonsk , in cases like this we need to choose what would be the iterative input, and create additional columns on it to control the iterations. In this case I chose Resource and I created a blank column to receive the assigned tasks. Having the task in the iterative input allowed me to join with the full list of tasks and to remove preassigned tasks. 

The first container were to remove assigned tasks, last 2 containers to take care about the output rules. Containers in between was to assign the task to a resource

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Labels