We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to transpose this table? (please see details)

Ryanz3653
7 - Meteor

Hi Alteryx Community,

I have a dataset as below example:

BEFORE:

IDDATE1DATE2MATERIAL1MATERIAL2UNIT1UNIT2COMMENT1COMMENT2
12020-1-12020-1-3AABB24MMMXXX
22020-6-102020-6-15FFEE32NNNCCC
32023-10-52024-7-12WWQQ23BBBVVV

 

AFTER:

IDDATEMATERIALUNITCOMMENT
12020-1-1AA2MMM
12020-1-3BB4XXX
22020-6-10FF3NNN
22020-6-15EE2CCC
32023-10-5WW2BBB
32024-7-12QQ3VVV

Thank you for helping

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Use two Select tools - one to select the ID and the “1” fields and another to select the ID and the “2” fields. Then union the two stream together!

Qiu
21 - Polaris
21 - Polaris

@Ryanz3653 
I will go with the combination of Transpose and Cross Tab since it will be a bit dynamic.
I assume the column names contains the "number" as postfix.

0405-Ryanz3653.png

Labels
Top Solution Authors