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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Moving data from rows to columns

HannahSwain7
7 - Meteor

Hi,

 

I have a data set where I need to move columns to rows. What is the easiest way to do this please? Thank you!

 

Example data:

 

Original:

 

ID         Country

1234     China

1234     China

1234     Portugal 

1234     Spain

1001     Portugal

1002     France

1002     Germany

 

Format needed:

 

ID     Country      Country2      Country3

1234 China         Portugal        Spain

1001 Portugal     

1002 France       Germany 

2 REPLIES 2
aatalai
15 - Aurora

@HannahSwain7 try this flow

 

let me know if it helps

Cremo
7 - Meteor

Hi, 

 

you can try the attached WF. The number of columns in output is unknown so I am using a high number of columns to split (10) and then remove the null ones. You can increase that number in the "Text To Columns" tool if you need

 

Labels
Top Solution Authors