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

Transforming data back to original format of rows instead of multiple columns

timbeall20
6 - Meteoroid

Below is an example of the data I'm working with.

OwnerVendorProductModelLocationVendor2Product2Model2Location2Vendor3Product3Model3Location3
TylerBlackRubberTires10San FranciscoMotoZoneFairings20Portland    
JenRaceCityDetailing30DubaiGlassCentralReplacement40EnglandBreathEZAirIntake50San Francisco

 

I would like the data to show as follows:

VendorProductModel #LocationOwner
BlackRubberTires10San FranciscoTyler
MotoZoneFairings20PortlandTyler
RaceCityDetailing30Dubai

Jen

GlassCentralReplacement40EnglandJen
BreathEZAirIntake50San FranciscoJen

 

The number of duplicate columns vary based on how many vendors there are to an owner. Qiu helped me transform the data to multiple columns using the owner as the unique identifier. The topic of the discussion I originally posted is Moving rows from multiple columns based on a similar column value into a single row

 

I need help transforming it back to rows by using the Model # as the unique identifier.

 

Thank you in advanced for your support.

6 REPLIES 6
alexnajm
18 - Pollux
18 - Pollux

Why do you need to transform it back if you have the original data in that format? Solved: Moving rows from multiple columns based on a simil... - Alteryx Community

jrlindem
11 - Bolide

@timbeall20 I've attached a solution.  This isn't the most "scalable" way to solve, but it does get you what you need for the four columns...

 

Hopefully you can adapt it from there!  - Jay

jrlindem_0-1755627976806.png

 

jrlindem
11 - Bolide

Okay, I way over-complicated my first response 😅

This is a better version, more succinct.  Either way gets you there.  Hopefully between the two approaches you can adapt.  -Jay

jrlindem_0-1755628476861.png

 

timbeall20
6 - Meteoroid

Thank you, Jay! I appreciate the quick response. This helps me understand which tools I can use to transform other datasets in the future as I continue with my trainings.

timbeall20
6 - Meteoroid

For context - The first format transformation (rows to multiple columns for each owner) is the format for distribution which yields additional results & data. Reverting it back to the original format (unique row per model #) makes it much easier to report on each 'Model #', as opposed to each owner. 

alexnajm
18 - Pollux
18 - Pollux

Sure, but my only point was that if the input of the other question was the exact output of this question (which it is) you may not need to worry about transforming back and forth! Save some steps 😊

alexnajm_0-1755633721144.png

 

Labels
Top Solution Authors