Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Transposing summerized row to a column

vikula
5 - Atom

I'm new to alteryx  and before posting my issue, I looked as much as I could to see if there were any similar ones before and I couldn't find any. I'm trying to move data from Jason file to a tabular format.  Lot of examples in this forum helped me in getting to a point where I'm able to parse the Jason file and split the different levels of data into corresponding columns. Here is where I hit the road block.  I want to transpose summerized(higher level) rows into columns in the form of repeated values.

 

Convert this : 

JSON_Name6JSON_Name7JSON_Name9JSON_Name10JSON_ValueString
0PROD_GRADES0CODEDiesel
0PROD_GRADES0PRICE1.149
0PROD_GRADES0CHANGEFLAGSAME
0PROD_GRADES1CODESuper E5
0PROD_GRADES1PRICE1.329
0PROD_GRADES1CHANGEFLAGSAME
0PROD_GRADES2CODESuper E10
0PROD_GRADES2PRICE1.309
0PROD_GRADES2CHANGEFLAGSAME
0UNIQUEID  60d394d5-7514-46b4-8d6f-b3539a982fc0
0CODE   
0CURRENCY  EUR
0VOLUMEUNIT  LITER
0QUERYSURVEYDATE  2018-02-16 01:44:54
1PROD_GRADES0CODEDiesel
1PROD_GRADES0PRICE1.119
1PROD_GRADES0CHANGEFLAGSAME
1PROD_GRADES1CODESuper E10
1PROD_GRADES1PRICE1.279
1PROD_GRADES1CHANGEFLAGSAME
1PROD_GRADES2CODESuper E5
1PROD_GRADES2PRICE1.319
1PROD_GRADES2CHANGEFLAGSAME
1UNIQUEID  2ab8e58f-64bf-4f4b-a9d4-ad1519ffe2ad
1CODE   
1CURRENCY  EUR
1VOLUMEUNIT  LITER
1QUERYSURVEYDATE  

2018-02-16 01:44:54

 

To: 

 

UNIQUEIDCODECURRENCYVOLUMEUNITQUERYSURVEYDATECODEPRICECHANGEFLAG
60d394d5-7514-46b4-8d6f-b3539a982fc0 EURLITER2018-02-16 01:44:54Diesel1.149SAME
60d394d5-7514-46b4-8d6f-b3539a982fc0 EURLITER2018-02-16 01:44:54Super E51.329SAME
60d394d5-7514-46b4-8d6f-b3539a982fc0 EURLITER2018-02-16 01:44:54Super E101.309SAME
2ab8e58f-64bf-4f4b-a9d4-ad1519ffe2ad EURLITER2018-02-16 01:44:54Diesel1.119SAME
2ab8e58f-64bf-4f4b-a9d4-ad1519ffe2ad EURLITER2018-02-16 01:44:54Super E51.279SAME
2ab8e58f-64bf-4f4b-a9d4-ad1519ffe2ad EURLITER2018-02-16 01:44:54Super E101.319SAME

 

 

Thanks in advance!!

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

I think your looking for the cross-tab tool but first I would split the data into two streams based on the header levels.

 

2018-08-07_17-33-53.png

 

 Solution attached.

vikula
5 - Atom

That split and Join did it. Thank you for such a quick response. 

Labels