Free Trial

Alteryx Designer Desktop Discussions

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

Move Data from Columns to Rows with New Headers

utpal_kowshik
5 - Atom

I've been trying to move data from columns into rows with a new header for the rows. I have already figured out one way, however my method will work fine so far as the number of IDs are limited, thus if you look at my output I miss ID 4 & ID 5 for State 1 and so on.

 

Is there any way to modify this workflow to be dynamic and allow for it to increase the number of row headers based on the data?

 

The input and output data should look as shown below. I have also attached the workflow I've built which gets me this result.

 

Input

Input.png

 

Current Output

Output.png

 

Desired Output

Ideal Output.png

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @utpal_kowshik I mocked up a workflow let me know what you think?

 

Transpose_Crosstab_28082020.JPG

grazitti_sapna
17 - Castor

Hi @utpal_kowshik , is this what you were looking for?

grazitti_sapna_0-1598597318921.png

Thanks.

 

Sapna Gupta
RolandSchubert
16 - Nebula
16 - Nebula

Hi @utpal_kowshik ,

 

I've used a different approach - what do you think?

2020-08-28_08-48-47.png

 

I've attached a sample workflow. Let me know if it works for you.

 

Best,

 

Roland

Labels
Top Solution Authors