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

Convert row to column and pivot

MaliniLakshman
7 - Meteor

I have data like this

MaliniLakshman_1-1581622598038.png

 

I want to convert this data as below

MaliniLakshman_2-1581622633003.png

 

How could we achieve this in alteryx? Thanks

 

4 REPLIES 4
T_Willins
14 - Magnetar
14 - Magnetar

Let me know if this works for you.  Looks like this is just a sample of your data, so the parsing of the text for the Drug Type field may need to be modified depending on the questions in field F1.

 

Convert row to column and pivot.png

 

fmvizcaino
17 - Castor
17 - Castor

Hi @MaliniLakshman ,

 

Attached is an example showing how to do it.

 

Take a look and let me know if this makes sense to you.

Best,

Fernando Vizcaino

MaliniLakshman
7 - Meteor

Thank you. It worked

MaliniLakshman
7 - Meteor

Thanks a lot. It worked.

Labels