Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

DELIMITING TXT FILE

dunkindonut7777
8 - Asteroid

Hi how can I delimit properly this text file I have. I want to fix it and aligned accordingly.

 

Expected output

 

CODESSCRRRPATERMDTAAARYOKDO
300D000100 
300D000200 

Attached file for your reference. Hope you could help me with this one pls

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @dunkindonut7777 

 

Here's one way you could do this:

 

  1. Read the data in with no delimiters/column names
  2. Skip the header records
  3. Parse the fields based on the | delimiter
  4. Select/rename the fields
  5. Trim the extra spaces

Luke_C_0-1644687656680.png

 

ArtApa
Alteryx
Alteryx

Hi @dunkindonut7777 - Here is a more dynamic solution in case your actual dataset structure is different to the sample:

 

ArtApa_0-1644726095384.png

 

Labels