I recently had some conversations with users out there working with the Time Series Tools. In general, they are quite happy with it, but they struggled a little bit to get the output in a more usable format.
The challenge is the output of the TS Forecast Tool with its Period and Sub-Period. What is the real Timestamp behind each period and sub-period? What is the meaning of Period 580?
![DavidSta_0-1685545558611.png DavidSta_0-1685545558611.png](https://community.alteryx.com/t5/image/serverpage/image-id/307409iA6B430D4371C4475/image-size/large?v=v2&px=999)
Within the ETS/ARIMA Models, you find the option to define a “Series starting period.” But this only works for Week, Month, Quarter, and Year as an output.
So you need to calculate it based on the Period output by yourself. That is why I created a Macro to make this task a little bit easier for you folks out there.
![DavidSta_1-1685545558614.png DavidSta_1-1685545558614.png](https://community.alteryx.com/t5/image/serverpage/image-id/307412iF1858075B72F51EA/image-size/small?v=v2&px=200)
The Macro requires two inputs:
- D-Input takes the original Data to identify the latest Timestamp in your source dataset. Based on this, the following entries for the output are automatically calculated.
- F-Input takes the values from the TS Forecast output.
In the configuration of the Macro, you need to select your Date Column (used in D-Input) to calculate the Forecast Dates.
![DavidSta_2-1685545558614.png DavidSta_2-1685545558614.png](https://community.alteryx.com/t5/image/serverpage/image-id/307410iBB3A03671042C4A3/image-size/medium?v=v2&px=400)
The other option you need to choose is the Frequency. Here you can choose between Hours, Days, and Weekdays as they are not available directly from the ETS/ARIMA Tools.
As an Output, you receive the precalculated Timestamp column with the name of your original column.
![DavidSta_3-1685545558616.png DavidSta_3-1685545558616.png](https://community.alteryx.com/t5/image/serverpage/image-id/307413i6C7D510B563BCA41/image-size/large?v=v2&px=999)
You can find the Macro in the Gallery here. Attached you find a sample workflow as well.
I hope this Macro is helpful to some of you out there!
TS Date Sample Workflow.yxzp