We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help Needed: Assign Biker Based on Availability & Travel Time

JenilShah
5 - Atom

Hi everyone,

I'm building a delivery simulation in Alteryx and need help designing logic to assign each new delivery order to the next available biker, based on the time it will take to complete the shipment 

which I already have as a column called Estimated time to travel(in mins).

 


Scenario:
I currently have 4 bikers

SLA: Each order should be delivered within 2 hours (120 minutes) from the order time

Each biker starts as available at 0 minutes, and becomes unavailable until the time it takes to complete their assigned delivery

 

My Goal:

1.Assign it to the next available biker (someone who is free at or before the order time)
2.If no biker is available, mark the order as Staged and track how long it waits before someone is free
3.Track whether the shipment was delivered within SLA (120 mins)

4 REPLIES 4
caltang
17 - Castor
17 - Castor

What have you done so far in your own workflow? Attach it and let us see. Then we can better advise.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
KGT
13 - Pulsar

You may want to check out the sample at "Help > Sample Workflows > Use Scripting.... > Build a macro > Assign Supply to Demand". It uses an iterative macro to assign orders based on criteria.

aatalai
15 - Aurora

@JenilShah when the estimated time to travel is completed (estimated time to travel) do they need to return or can they go straight onto the next task?

JenilShah
5 - Atom

Hi Aatalai,

They need to come back to store, In Estimated time, coming back to store time is added.

Labels
Top Solution Authors