Start Free Trial

Alteryx Designer Desktop Discussions

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

Looping through each column and creating forecast models based on column name

rravir
5 - Atom

Hello!

 

I am working on a dataset that has multiple columns. I want to create a workflow where I loop through each column, check the name of the column and create a forecast models based on the name. For example 

 

PeriodSalesCostFactoraFactorb
110230.61.8
215240.82.1
320230.21.6
412221.31.5
515291.11.1
616180.81.4
720160.81.2
822231.22.4

 

If the column name is Sales I want to create a univariate forecast model (ARIMA or ETS) and if the column is Cost I want to create a multivariate forecasting model (ARIMA) with Factora and Factorb as external variables. Is something like this possible to do in Alteryx?

I have been trying to use batch macros but with little success. Any help is greatly appreciated.  

2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @rravir,

Have you checked out the TS Model Factory Tool & TS Forecast Factory Tool? I haven't personally used it but it allows you to generate multiple models based on groups of data which sounds like it would answer you problem. From what I know of it I think you would need to stack your target columns and add a group field for it to work but that should be alright with a couple of selects and then union tool.

 

If you have an issues setting up the factory tool make sure to ask :)

 

HTH,

Ira 

leozhang2work
10 - Fireball

Screenshot 2022-05-09 143535.png

As aforementioned, try out TS factory, it is what you are looking for.

Screenshot 2022-05-09 143517.png

Do make sure change the format of the data, so you can run it as group by.If you want to do different model, probably use a filter tool to split them.

Labels
Top Solution Authors