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.
SOLVED

Calculate Processed Date into future

macd279
7 - Meteor

Hello, I'm stuck on a problem and was hoping one of you could help me out. Thanks in advance for your help!

 

I'm trying to solve what date an order will be processed down to 0 orders based on the following conditions:

1. We process 2,500 orders everyday

2. Start from today's date (4/12/2021)

3. No unfulfilled orders before 4/1/2021

 

Here's a sample data set with the correct answer on the right. I'm trying to get to work dynamically and will need to scale this for many years into the future.

 

Order_DTOrdersProcessed_DT?Correct Answer:
4/1/20212000 4/12/2021
4/2/20214000 4/14/2021
4/3/20211000 4/14/2021
4/4/2021500 4/14/2021
4/5/20213000 4/16/2021
4/6/20212500 4/17/2021
5 REPLIES 5
Luke_C
17 - Castor
17 - Castor

Hi @macd279 

 

Do weekends/holidays need to be considered? 

macd279
7 - Meteor

No, everyday would be the same processing amount (2500) - Weekdays, weekends, holidays. 

apathetichell
20 - Arcturus

I would use running total and ceil division as attached...

macd279
7 - Meteor

Works great, thank you!

apathetichell
20 - Arcturus

Glad to hear it worked!

Labels
Top Solution Authors