Alteryx Designer Desktop Discussions

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

PARSING COMPLEX JSON WITH DUPLICATE IDENTIFIERS - SOS318

giulianosua1
7 - Meteor

Hi Teams, 

First of all thank y'all for your participation on this community - it has really saved me from a lot of headaches. 

Here is my issue, I am downloading data from an API with over 27000 rows, I am able to parse it until the point that I have two columns: Name & Value. 

 

Now the issue that I am having is that my data uses the same identifier multiple times for different data sets. In other words, I have a list of data like the below with over 2000 different IDs. 

 

NAMEVALUE
ID55555X
NAMEJOHN
LAST NAMESMITH
NATIONALITYFRENCH
ID55555X
ADDRESS10 RUE STEVIN
PHONE NUMBER 776103365
PLACE OF BIRTHPARIS, FRANCE
ID55555X
FAVORITE COLOURBLACK
FAVORITE MUSICROCK
ID55555X
UNIVERSITYHARVARD
ID666666X
NAMEJOHN
LAST NAMETRICH
NATIONALITYFRENCH
ID666666X
ADDRESS10 RUE STEVIN
PHONE NUMBER 776103365
PLACE OF BIRTHPARIS, FRANCE
ID666666X
FAVORITE COLOURPINK
FAVORITE MUSICROCK
ID666666X
UNIVERSITYOXFORD

 

and I would like the following output:

 

IDNAMELAST NAMENATIONALITYADDRESSPHONE NUMBER PLACE OF BIRTHFAVORITE COLOURFAVORITE MUSICUNIVERSITY
55555XJOHNSMITHFRENCH10 RUE STEVIN776103365PARIS, FRANCEBLACKROCKHARVARD
666666XJOHNTRICHFRENCH10 RUE STEVIN776103365PARIS, FRANCEPINKROCKOXFORD

 

I have tried to use the multi-row formula but it hasn't work for me. At least partially since it created a new record per ID. 

 

I am sorry for the simplistic example, I am not allow to share actual examples. Any help will be appreciated. 

 

Regards, 

Giuliano

4 REPLIES 4
grossal
15 - Aurora
15 - Aurora

Hi @giulianosua1,

 

here is a way to do it:

 

grossal_0-1585689654931.png

 

Output:

 

grossal_1-1585689684802.png

 

What happens:

 

Multi-Row-Formula:

grossal_2-1585689716186.png

This fills all the columns with the right IDs.

 

Filter:

Let's filter all the ID rows because they don't contain data.

 

 

Cross Tab:

Time to bring the data into shape!

 

 

Workflow attached. Let me know if you were looking for this.

 

 

Best

Alex

giulianosua1
7 - Meteor

Thank you very much!! it worked!

grossal
15 - Aurora
15 - Aurora

I am glad it helped! 

 

Would you mind accepting it as a solution?

giulianosua1
7 - Meteor

Done! thank you Again!

Labels