In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
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