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

Build JSON grouped by ID

HDA_Hans
5 - Atom

Hi, I am trying to build a JSON file with a bit of complexity included. It sounds so easy to me but I can't work it out somehow. I would like to group by an id the JSON.

 

If you look at the following table:

HDA_Hans_0-1632329955406.png

 

If would like to group it by the id and have an output like this:

HDA_Hans_1-1632330021501.png

 

Has anyone an idea how to solve this?

 

Demo data is included here in the attached "example_alteryx.csv.

 

I have also converted it on https://www.convertcsv.com/csv-to-json.htm and it converted exactly as I wanted it using the "CSV to Keyed JSON". See the file convertcsv(1).json.txt.

 

Any help would be greatly appreciated.

 

Thanks,

 

Hans

 

 

 

 

 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @HDA_Hans 

 

Default JSON Build tool doesnt give your expected output. Here is how you can do it.

Workflow:

atcodedog05_0-1632331271365.png

 

Hope this helps : )

HDA_Hans
5 - Atom

Hi @atcodedog5 fantastic, thanks for your quick reply and this is indeed a typical hidden gem in Alteryx. I never new you could specify how to concatenate in the summarize tool. Thanks so much!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @HDA_Hans 

Cheers and have a nice day!

Labels
Top Solution Authors