Alteryx Designer Desktop Discussions

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

how to transpose/pivot repeating rows into columns

1737280
8 - Asteroid

I'm working on a workflow that reads JSON data and processes the relevant datapoints into tabular data.  I got to the following format after a series of Select, Filter, and Formulas once reading from the Json Parser:

 

JSON_NameJSON_ValueString
id123
firstNameJohn
OfficeNew York
Revenue150,000
id135
firstNameMary
OfficeChicago
Revenue230000
id179
firstNameJoe
OfficeMiami
Revenue175000

 

You can see it's 4 rows repeating with different values.  How can I transform into the following structure?

idfirstNameOfficeRevenue
123JohnNew York150000
135MaryChicago230000
179JoeMiami175000

 

Thanks for any suggestions in advance.

2 REPLIES 2
fmvizcaino
17 - Castor
17 - Castor

Hi @1737280 ,

 

Attached is an example showing how to do it. 

fmvizcaino_0-1583296665882.png

 

 

Let me know if this works for you.

Best,

Fernando Vizcaino

1737280
8 - Asteroid

Thank you @fmvizcaino.  Adding the dummy field as the key wasn't what I thought of. ; ) 🙂  It works perfectly!

Labels