Alteryx Designer Desktop Discussions

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

Parse data into multiple rows based on partial field name

MarkD
7 - Meteor

I'm using the download tool to access an API, then the JSON Parse tool, and then this combination of tools to improve it , but still need to get further with it, and not quite sure how to best approach it, here is what I'm getting in my output: 

 

FirstNameLastNameprojects_0_idprojects_0_nameprojects_0_totalprojects_1_idprojects_1_nameprojects_1_totalprojects_2_idprojects_2_name
JohnSmith1Widgets189.42Gadgets248.93Stones

 

and so on, for hundreds of projects, instead what I would want:

 

FirstNameLastNameProject_IDProject_NameProject_Total
JohnSmith1Widgets189.4
JohnSmith2Gadgets248.9
JohnSmith3Stones18.2

 

 

Any help on how to accomplish this would be greatly appreciated! Thanks in advance!

2 REPLIES 2
Assaf_m
11 - Bolide

Check the attached solution.

 

let me know if works for you

MarkD
7 - Meteor

Thanks! Had to make some small tweaks since this didn't work with project numbers longer than 1 character (i.e. failed at project 10+), but got it working! Regex was the best solution as taking 2 characters created other challenges with some fields with the underscore and some without.

 

Thanks again!

Labels