Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Run Linear Regression for parts of data based on distinct values in a column

PoojaPrasadUTD
6 - Meteoroid

Hi,

 

I have following dataset format where I need to predict Price for each city using Linear Regression. How can I create a loop based on distinct values of city and run Linear Regression for each city and save the predictions in the a single table as an output.

 

Input data

CityBedsAreaPrice
ABC23100
ABC34120
ABC1290
DEF23200
DEF34220
DEF12190

 

Any suggestions would be appreciated.

Thanks

1 REPLY 1
AngelosPachis
16 - Nebula

Hi @PoojaPrasadUTD ,

 

I would suggest creating a batch macro for that task, using the "City" field as control parameter.

Labels
Top Solution Authors