Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert long data to wide -Crosstab data, update column headers, cell data values with 0,1

kalash47
5 - Atom

I have the following use case-

 

Input data-

UserQuestionAnswer
AQ1a
AQ2x
AQ2y
AQ2z
BQ1c
BQ2p
BQ2q
BQ2x

 

Required output-

UserQ1Q2_xQ2_yQ2_zQ2_pQ2_q
Aa11100
Bc10011

 

Please help!

1 REPLY 1
FrederikE
13 - Pulsar

Hey @kalash47,

 

This is how I'd do it. 

FrederikE_0-1678971873242.png

 

Edit: If you want Q1 to include the "c/a" instead of 1, you can remove it in the multi-field.

 

Labels
Top Solution Authors