Alteryx Designer Desktop Discussions

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

Tranpose Columns and Join

mcha54
8 - Asteroid

I have some data in a crosstab format that I'd like to transpose. Example workflow attached. I'm having some trouble stitching it back together. Also, is there a better way to transpose to future-proof it if new columns were added?

 

Input:

IdDATESKUA-QTYA-RECIPIENTA-SHIPTOA-COURIERA-TRACKINGNOB-QTYC-QTYBC-RECIPIENTBC-SHIPTOBC-COURIERBC-TRACKINGNO
2,697,226,9726/11/2020ZZ5677Z0101JOHN DOE2 Macquarie StreetUPS123451 JANE DOE221 B Baker StDHL54321
2,697,326,9736/11/2020ZZ5691ZPFU1JOHN DOE2 Macquarie StreetUPS123451 JANE DOE221 B Baker StDHL54321

 

Desired Output:

IdDATESKUQTYRECIPIENTSHIPTOCOURIERTRACKINGNO
2,697,226,9726/11/2020ZZ5677Z0101JOHN DOE2 Macquarie StreetUPS12345
2,697,226,9726/11/2020ZZ5677Z0101JANE DOE221 B Baker StDHL54321
2,697,326,9736/11/2020ZZ5691ZPFU1JOHN DOE2 Macquarie StreetUPS12345
2,697,326,9736/11/2020ZZ5691ZPFU1JANE DOE221 B Baker StDHL54321

 

2020-06-11_13-27-02.png

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

Here's my attempt. The fact that B and C are lumped together for some fields made it a bit trickier.

 

Let me know if this works for you.

 

DavidP_0-1591946943237.png

 

smoskowitz
12 - Quasar

@mcha54 

 

You might want to add a record ID before transposing. This will allow you to easily summarize it back to the original format -- if that's what you wish do. Let me know if you need more help.

 

Seth

Labels