Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Alteryx - how to transpose data

yilingchen02
8 - Asteroid

Hi there,

Is there a way to use crosstab or other techniques to achieve the following?

 

Before

IDQuestionnaire
A1What's your name
A1Alice
A2How old are you
A29
A3What's your favorite food
A3Noodles
B1What's your name
B1Bob
B2How old are you
B25
B3What's your favorite food
B3Beef

 

After

IDQuestionAnswer
A1What's your nameAlice
A2How old are you9
A3What's your favorite foodNoodles
B1What's your nameBob
B2How old are you5
B3What's your favorite foodBeef

 

Thanks,

Yiling

3 REPLIES 3
DavidSkaife
13 - Pulsar

Hi @yilingchen02 

 

While not using the tools you suggested here is a way of doing it, as long as your data is structured as Question then Answer:

 

DavidSkaife_0-1666191851648.png

 

DataNath
17 - Castor
17 - Castor

Couple of other ways I can think to handle this, either concatenating then splitting the results or assigning a header based upon the position and then cross-tabbing:

 

DataNath_0-1666192604865.png

Christina_H
14 - Magnetar

Easiest way I know is to use Tile and Crosstab

Christina_H_1-1666193146321.png

 

 

Labels
Top Solution Authors