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.

how to assign order volumes to contract monthlines

LindaDekkers
5 - Atom

Can anyone help me to build a workflow to assign order volumes to contract month lines?

The idea is:

I have an order file and a contract file. Key in both is customer and product, I need to assign an order to a contract month line where the rule is, -->use older month lines first and order volumes cannot exceed the contract month line volume, orders can not be divided over two month lines. If order is bigger then the first available month line, then try second month line etc. After order 1 is placed on a month line, then order volume should be deducted from the month line volume and the second order can be linked. The output should be : 1) which order is linked to which contract month line? 2) which orders could not be assigned with a reason a) month line volumes are too small or b) no applicable contract in place

I attached example data. Would be great if somebody could help, or point me into the right direction

3 REPLIES 3
CarliE
Alteryx Alumni (Retired)

Hi @LindaDekkers

 

Do you mind providing the expected output?

 

Thanks,

Carli

Carli
LindaDekkers
5 - Atom

Hi Carli

 

I have added the expected output.

 

thank you

 

Linda 

CarliE
Alteryx Alumni (Retired)

Hi @LindaDekkers,

 

I do not see it attached. Do you mind trying again?

 

Thanks!

Carli
Labels
Top Solution Authors