Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Regex and Transpose

geeksqaud
8 - Asteroid

i am getting data in the below format. 

 

 

 

how do I transpose to get it in the below format ??

 

 

 

6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @geeksqaud ,

 

If you post a sample of the data I'll be happy to build that for you.

 

M.



Bulien

geeksqaud
8 - Asteroid

hi @mceleavey 

 

Thank you. Here is the sample data.

mceleavey
17 - Castor
17 - Castor

Hi @geeksqaud ,

 

Regex is my friend and yours.

 

M.



Bulien

ArtApa
Alteryx
Alteryx

Hi @geeksqaud - Here is a sample for you:

 

ArtApa_0-1614635991646.png

 

geeksqaud
8 - Asteroid

@mceleavey Thanks a lot. I added an extra record to the sample data and columns got overlapped. This is exactly I am experiencing with real data. Attaching sample data. Hope there is a way to fix this.

mceleavey
17 - Castor
17 - Castor

Hi @geeksqaud ,

 

Yes, this is because you have different formats within your json structure.

This is unfortunately common.

As you can see, I've split the streams into the two different formats (number of sections in the JSON Name field) and handled them independently. 

I then joined them back on the key ID field.

 

Hope this helps,

 

M.



Bulien

Labels