Free Trial

Alteryx Designer Desktop Discussions

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

Convert text to columns

geeklarokcmie
8 - Asteroid

Hello,

 

I'm looking to convert values in Summary and Description field to date and number columns. 

 

Input: 

SummaryDesc
 Error Report for 11/1There were 88 active error for 11/1

NCS: 80 Errors 

Tow: 0 Errors

Tage: 8 Errors

CG: 0 Errors

 
 Error Report for 11/5 There were 87 active error for 11/5

NCS: 0 Errors 

Tow: 0 Errors

Tage: 77 Errors

CG: 10 Errors


Expected Output:

 SystemsCGTOWNCSTAGE
DatesActive ErrorsErrorsErrorsErrorsErrors
11/1/20248800808
11/5/202487100077
5 REPLIES 5
cpet13
11 - Bolide

@geeklarokcmie a REGEX tool would probably help you get what you need. You could use that to parse out the fields and get the values you are looking for. Are the values in the DESC field stored as tab separated items, line breaks, or how?

geeklarokcmie
8 - Asteroid

Values in the Description field are separated into multiple lines with space after each line

cpet13
11 - Bolide

@geeklarokcmie here is an example of how you could use the Regex tool to get yourself started. If the errors are always going to be in that same order, you could simply use a select tool after and rename Errors1 to be NCS, Errors2 to be TOW, etc. You would then just need the digits portion of the regex tool to be returned.

Qiu
21 - Polaris
21 - Polaris

@geeklarokcmie 
Parsing non-structured data is not requiring much skills but just patience. 😁
here is my try on this.

1113-geeklarokcmie.png

flying008
15 - Aurora

Hi, @geeklarokcmie 

 

FYI.

 

录制_2024_11_13_09_35_38_673.gif

Labels
Top Solution Authors