Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

convert rows to columns

Rob48
8 - Asteroid

I have multiple rows of data that repeats in all columns except the last one.  I want to convert the last columnn to individual rows.  I figure I need to use the cross tab tool but I can't get it to work right

 

by way of illistration my data looks like this:

 

 

ManagerStateEmployee
AAAAOhioXXXX
AAAAOhioYYYY
AAAAOhioZZZZ
BBBBIndianaQQQQ
BBBBIndianaRRRR
BBBBIndianaSSSS
BBBBIndianaTTTT
CCCCIllinoisUUUU
CCCCIllinoisVVVV
CCCCIllinoisWWWW

 

and I want to make it look like this:

 

ManagerStateEmployeeEmployee 2Employee 3Employee 4Employee 5Employee 6
AAAAOhioXXXXYYYYZZZZ   
BBBBIndianaQQQQRRRRSSSSTTTT  
CCCCIllinoisUUUUVVVVWWWW  

 

 

I don't mind blanks in some of the "Employee n" columns but I need the workflow to function so that it will to accomodate enough columns to capture however many of the highest number of Employess any one manager has.

 

Thanks!

6 REPLIES 6
WeiLi
7 - Meteor

See image below.

The tools you need is Record ID and Cross Tab. The left side panel has the settings used. The bottom section is the output.

From there, you can pick out the stuff you need / not ned.

 

Capture.PNG

Raj
16 - Nebula

FInd the workflow for the required output

binuacs
21 - Polaris

@Rob48 one way of doing this

image.png

Raj
16 - Nebula

@WeiLi Good approach but to make this on the dynamic part on the simpler way you can just add a multirow formula and formula tool to make new headers dynamically
this will be sizable for huge volume of data as well.

Altought solution can be achieved with your logics as well.

grazitti_sapna
17 - Castor

Hi @Rob48 
I have made Workflow for your Problem. Please Check.
If it works Kindly accept it as Solution.
Thanks 

Sapna Gupta
nagakavyasri
12 - Quasar

Capture1.PNG

Labels
Top Solution Authors