Alteryx Designer Desktop Discussions

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

Cover output forecast data into date

BlakeGriffin2093
7 - Meteor

Hi guys,

 

i have a problem to convert output forecast data into dates. In this picture below, you guys can see the period and sub period in numeric type but i want to convert the period and sub period into dates in order to connect the original data by the field date, cause i need to use output to show in BI report. i'm newbie so i need you guys help with this problem, thanks in advance
Table 1: Output data

PeriodSub_Periodforecast_oilforecast_oil_high_80forecast_oil_high_70forecast_oil_low_70forecast_oil_low_80
418588.4388526990.4959175890.1024695186.7752358786.38178779
418688.4233114790.5798666790.1673894186.6792335486.26675628
418788.4181784690.6698322290.2391657786.5971911586.1665247
419188.4180769690.7609723990.3128544486.5232994886.07518154
419288.4312228890.8619374590.3970226286.4654231486.00050831
419388.3922158690.9076855390.4265598786.3578718585.8767462
419488.4442842991.0417449790.5449371686.3436314285.84682362
419588.4677211491.1539623390.6401737786.2952685185.78147994
419688.4067054491.1726595890.6436245886.1697862985.64075129

Table 2: Original data

DatePrice of Crude Oil/ barrel (USD)
01/01/201192.19
02/01/201192.54
03/01/201192.86
04/01/201192.76
05/01/201192.91
06/01/201192.79
07/01/201192.20
08/01/201192.93
2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Hi @BlakeGriffin2093 , I believe there are some similar questions already on the community, but the process tends to be something like;

 

1. your datastream prior to the forecast, use a summerize tool to find the Max Date.

 

2. Append this MaxDate value to the datastream coming out of the forecast.

 

3. Use the datetimeadd() function to build out the true forecast dates.

 

I've attached an example for you, which assumes your forecast is at a day level.

 

2019-03-13_08-14-59.png

 

Ben

 

 

BlakeGriffin2093
7 - Meteor

you save my day, thanks so much. I also find another way to connect the original data and the forecast data, but it is difficult for others to understand. 

Labels