Alteryx Designer Desktop Discussions

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

Extracting lengths and units of measurement from a string

eleee3
8 - Asteroid

Hi there,

 

I have data about road segments from which I want to extract a unit of measurement (UOM) from. An example of the raw data is as follows:

 

Road SegmentRoad StartRoad EndUOM
Main Rd Segment 1039.0547.08km
Main Rd Segment 114708155670m
Main Rd Segment 12 55.671-64.3km00 
Main Rd Segment 13 64301-69050m00 
Pedestrian Bridge Up 35.04 Down 35.70km00 
Pedestrian Bridge Up 53000 Down 53400m00

 

 

I want Alteryx to look through the "Road Segment" column and extract the start, end and UOM, so that the end result would appear as follows:

 

Road SegmentRoad StartRoad EndUOM
Main Rd Segment 1039.0547.08km
Main Rd Segment 114708155670m
Main Rd Segment 12 55.671-64.3km55.67164.3km
Main Rd Segment 13 64301-69050m6430169050m
Pedestrian Bridge Up 35.04 Down 35.70km35.0435.70km
Pedestrian Bridge Up 53000 Down 53400m5300053400m

 

Could someone please explain how to do this in Alteryx?

 

Thanks in advance!

4 REPLIES 4
grazitti_sapna
17 - Castor

Hey @eleee3 , This issue seems quite similar to one I provided in your another post. Anyway based on your this data set I have created the solution. Please accept it if it solved your problem.

grazitti_sapna_0-1676438269923.png

 

Sapna Gupta
eleee3
8 - Asteroid

Thank you for such a quick and detailed solution, @grazitti_sapna ! 

 

I'm receiving an error message when I try to use this formula in my file. It says:

 

The field "" is missing. Compare the tool configuration with the input stream.

 

Do you know what this error message is about?

binuacs
20 - Arcturus

@eleee3 The above error is because of you are missing one of the formula tool column names

binuacs_0-1676445216970.png

 

 

eleee3
8 - Asteroid

Oh yep that's fixed it, thanks @binuacs !

Labels