Alteryx Designer Desktop Discussions

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

Data arrangement

Lalaiah
8 - Asteroid

Hi Team,

 

I have the data as below and need output below mentioned

 

INPUT.

JSON_NameJSON_ValueString
data.0.fileName904056BE-46BF-4D07-A.pdf
data.0.classificationId-1
data.1.fileName939DDFE0-FF51-4D80-A.pdf
data.1.classificationId1584
data.2.fileName557AC0DA-CA28-4B5A-B.pdf
data.2.classificationId1464
data.3.fileName5A0286DC-E0E3-4224-8.pdf
data.3.classificationId1584

 

OUTPUT

 

File NameClasificationID
904056BE-46BF-4D07-A.pdf-1
939DDFE0-FF51-4D80-A.pdf1584
557AC0DA-CA28-4B5A-B.pdf1464
5A0286DC-E0E3-4224-8.pdf

1584

 

Regards,

Lalaiah Katam

4 REPLIES 4
DataNath
17 - Castor

Hey @Lalaiah, multiple ways of doing this but here's one:

 

We can see that the objects follow a structured name which we can use to parse a form of RecordID, as well as the name (filename/classification ID) that we will use as a header in the next step:

 

DataNath_1-1679578325482.png

 

Now that we have the information needed to group our data and assign the correct headers, we just configure the Cross-Tab like so:

 

DataNath_2-1679578351763.png

 

Finally, we just sort the records back into their correct order:

 

DataNath_3-1679578369305.png

 

Hope this helps! Please let us know if you have any questions.

Lalaiah
8 - Asteroid

Hi DataNath,

 

Thanks for your solution but its not getting out put for the below.

 

JSON_NameJSON_ValueString
data.0.fileName904056BE-46BF-4D07-A.pdf
data.0.classificationId-1
data.1.fileName939DDFE0-FF51-4D80-A.pdf
data.1.classificationId1584
data.2.fileName557AC0DA-CA28-4B5A-B.pdf
data.2.classificationId1464
data.3.fileName5A0286DC-E0E3-4224-8.pdf
data.3.classificationId1584
data.5683.fileName5A0286DC-E0E3-4224-8.pdf
data.5683.classificationId1584
data.593.fileName557AC0DA-CA28-4B5A-B.pdf
data.593.classificationId1464

 

Regards,

Lalaiah Katam

DataNath
17 - Castor

Sorry @Lalaiah, had completely overlooked that and hard-coded based on a single digit RecordID which isn't realistic at all! This ought to be dynamic:

 

DataNath_0-1679579094611.pngDataNath_1-1679579104614.png

Lalaiah
8 - Asteroid

Thank you so much @DataNath 

Labels