Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Transpose tool

aparna0208
8 - Asteroid

Hi,

 

I have a file that includes data as seen in below snapshot. I need to transpose those two columns(as indicated in the second snapshot) and I tried the transpose tool and didn't get the desired output. I'm wondering if I need to use a crosstab before transpose tool. Any help on this would be appreciated. Thank you!

 

aparna0208_0-1643838226735.png

 

Expected output

 

aparna0208_1-1643838412510.png

 

 

3 REPLIES 3
Luke_C
17 - Castor

Hi @aparna0208 

 

Cross-tab is the correct tool to use. However, you're running into issues because there's no unique key that tells Alteryx how to split the records, it doesn't know to put George and Bob on separate records - how you choose to summarize (first, last, concatenate) would be what you'd see in your results.

 

To make this work, you need to assign an ID to group by when you cross-tab. I used a tile tool to do this, but you could also go about it other ways (i.e. multi-row formula,etc). 

 

Luke_C_0-1643839166598.png

 

binuacs
20 - Arcturus
aparna0208
8 - Asteroid

Both solutions worked:) Thank you so much @Luke_C @binuacs 

Labels