Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Predict or Forecast Future dates resource hours based on the Previous Values

sheeba
5 - Atom

Hello,

 

I need to predict or forecast the next 2 weeks' hours based on the previous 2 weeks' hours as shown below. How can i achieve this?

 

Week ofUserActivity TypeActivityMonTueWedThuFriSatSun
4/6/2020aABCTraining--21--1----
4/6/2020bABCTraining--------------
4/6/2020cABCTraining--1----1----
4/6/2020ddefExample 1----444----
4/6/2020adefExample210104--------
4/6/2020bdefExample 31111------
4/6/2020cdefExample 4564.565.5--2
4/13/2020aABCTraining--41--1----
4/13/2020babcTraining--------------
4/13/2020cabcTraining--1----1----
4/13/2020ddefExample 1----443----
4/13/2020adefExample27106--------
4/13/2020bdefExample 31111------
4/13/2020cdefExample 4555.565.5--2
4/20/2020aabcTraining       
4/20/2020babcTraining       
4/20/2020cabcTraining       
4/20/2020ddefExample 1       
4/20/2020adefExample2       
4/20/2020bdefExample 3       
4/20/2020cdefExample 4       
4 REPLIES 4
RolandSchubert
16 - Nebula
16 - Nebula

Hi @sheeba ,

 

"predict" or "forecast" usually points to Time Series (ETS, ARIMA) or Predictive tools (e.g. Linear Regression). Unfortunatey, the available data set is very small (only two weeks of history) - tools based on previous values will not return suitable results. I don't think so either, that a regression model would fit.

My solution would be to use an average of last two weeks values as a forecast for the next week, perhaps a weighted average (e.g. last week 60%, last but one week 40%) could make sense.

I've attached a sample workflow to illustrate. Let me know, what you think about this approach.

 

Best,

 

Roland

sheeba
5 - Atom

Hello Roland,

 

Thank you so much! That works fine. But, I wanted the 2 future dates also to be calculated.4/20/20 and 4/27/2020 also need to be calculated instead of providing as an input.

RolandSchubert
16 - Nebula
16 - Nebula

Hi @sheeba ,

 

I added a Generate Rows tool to create the additional weeks. Hope that works for you.

 

Best,

 

Roland 

sheeba
5 - Atom

Thank you so much, Roland!!

Labels
Top Solution Authors