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

Parsing and repeating the first data element in each row

alphabex18
8 - Asteroid

Hi all, 

I am trying to parse the data from an EDI transmission file. The below is my current output after a transpose tool. I want to separate the text between the asterisks, however the very first string of text in each line (the text before the first asterisk) I need to repeat for each additional data element in that same line. 

EDIpic.png

I want my outcome from the table above to look like this. I am showing only the first three lines from the above table.

RefValue
ISA00
ISA 
ISA00
ISA 
ISAZZ
ISA330115986
ISAZZ
ISA473103726
ISA180815
ISA1006
ISAU
ISA00501
ISA000001171
ISA0
ISAT
ISA>
GSBE
GSCC
GSOH
GS20180815
GS1006
GS1171
GSX
GS005010X2201A
ST834
ST11710001
ST005010X2201A

 

Thank you for any advice!

 

4 REPLIES 4
ponraj
13 - Pulsar

Possible to shared the sample data in excel 

JohnJPS
15 - Aurora

Hi @alphabex18

Perfect scenario for Alteryx: try two Parse tools in a row: the first, split your "Value" field to columns, only two columns and "Leave extra in the last field".  The second, split the new "Value2" field to rows.  Boom: you're done.  :-)

Hope that helps!

John

alphabex18
8 - Asteroid

John, I love you!!!! Thank you so much. 

 

ajay1998
6 - Meteoroid

Great resolution

 

Labels