Forum Discussion

skourtip's avatar
skourtip
Frequent Visitor
4 years ago

Pick earliest appointment date

Hi i have the below problem:

 

I have in first table with unscheduled works for my employees, and i want to pick the earliest appontment date based in product delivery date and from the second table if he has the characteristic and if he has available capacity. In the third table i have allready picked appontment dates for some days ahead for other works, and if my employee has completed the daily capacity to automatic pick the next available day with available capacity, is there a way?

 

 

Table1

employeeCHARACTERISTICQuantityProduct Delivery DateAppointment Date
EMPLOYEE1CHARACTERISTIC111/4/2022 
EMPLOYEE2CHARACTERISTIC211/4/2022 
EMPLOYEE2CHARACTERISTIC3130/3/2022 
EMPLOYEE2CHARACTERISTIC1130/3/2022 
EMPLOYEE3CHARACTERISTIC2130/3/2022 
EMPLOYEE1CHARACTERISTIC1130/3/2022 
EMPLOYEE3CHARACTERISTIC2131/3/2022 
EMPLOYEE3CHARACTERISTIC3131/3/2022 

 

Table2 

EMPLOYEECHARACTERISTICCAPACITY
EMPLOYEE1CHARACTERISTIC13
EMPLOYEE1CHARACTERISTIC25
EMPLOYEE1CHARACTERISTIC310
EMPLOYEE2CHARACTERISTIC14
EMPLOYEE2CHARACTERISTIC215
EMPLOYEE2CHARACTERISTIC33
EMPLOYEE3CHARACTERISTIC110
EMPLOYEE3CHARACTERISTIC22
EMPLOYEE3CHARACTERISTIC317

 

Table3

employeeCHARACTERISTICQuantityProduct Delivery DateAppointment Date
EMPLOYEE1CHARACTERISTIC1128/3/202231/3/2022
EMPLOYEE2CHARACTERISTIC2130/3/202231/3/2022
EMPLOYEE2CHARACTERISTIC3130/3/202231/3/2022
EMPLOYEE2CHARACTERISTIC1130/3/202231/3/2022
EMPLOYEE3CHARACTERISTIC2124/3/202231/3/2022
EMPLOYEE1CHARACTERISTIC1128/2/202231/3/2022
EMPLOYEE3CHARACTERISTIC2130/3/202231/3/2022
EMPLOYEE3CHARACTERISTIC3130/3/202231/3/2022
EMPLOYEE1CHARACTERISTIC1117/3/202231/3/2022
EMPLOYEE2CHARACTERISTIC1121/3/202231/3/2022

 

Thanx in advance

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI skourtip,

    Your sample data looks irregular so I can't clear your expected results, can you please explain more about these?

    How to Get Your Question Answered Quickly 

    Did you mean to calculate the 'appointment date' based on 'Product Delivery Date' and daily capacity and auto-generate the next 'CHARACTERISTIC' plan and appointment date if the current one is completed?

    Regards,

    Xiaoxin Sheng