Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Extracting quantities from a string into another field

eleee3
8 - Asteroid

Hi there,

 

I have a database which contains information about road segment lengths and locations along the road. The raw data is inconsistent and looks something like this:

 

Road SegmentSegment Start (km)Segment End (km)
Main St Segment 9 35.03-49.678km  
Supermarket (22.09km)  
Main St Segment 1049.67958.42
School57.6357.63
Pedestrian Bridge - Up 29.032 Down 29.040  

 

I want Alteryx to look through the Road Segment column and extract the start and end lengths for road segments, and the data regarding how far along the road a location is. Using the above example, the output from this workflow would look something like this:

 

Road SegmentSegment Start (km)Segment End (km)
Main St Segment 9 35.03-49.678km35.0349.678
Supermarket (22.09km)22.0922.09
Main St Segment 1049.67958.42
School57.6357.63
Pedestrian Bridge - Up 29.032 Down 29.04029.03229.040

 

How can I do this in Alteryx?

 

Thanks in advance!

2 REPLIES 2
grazitti_sapna
17 - Castor

Hi @eleee3 , Here is my solution. Please let me know if it was helpful to you:

 

grazitti_sapna_0-1676437214993.png

 

Sapna Gupta
eleee3
8 - Asteroid

Hi @grazitti_sapna, that's perfect, thank you!

Labels