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 Data

olehr
8 - Asteroid

Hi there. 

 

I have some data that is slightly difficult to work with. A sample is pictured below. Car Data1.PNG

 

This is how the data is currently, and what I want is to parse out the car brand, model and year in separate fields, such as the example below. 

 

Car Data2.PNG

 

This seems to require regex-skills that i do not have 😛 

 

Could someone help me with this? 🙂

 

 

2 REPLIES 2
OllieClarke
15 - Aurora
15 - Aurora

HI @olehr Using a regex tool with the following formula you get what you want:

 

(\S+)(.*?)(\d{4})(.*)

 

Then a multi-field formula to remove any leading or trailing spaces.

OllieClarke_0-1571910756261.png

However, this is based on the logic that car brands are single words. Otherwise it is very difficult to tell the difference between a car brand and a model - e.g. 'Volkswagen New Beetle' and 'Alfa Romeo Spider'.  If you had a lookup table of car makes, then that would probably be a better way of doing this

 

OllieClarke_1-1571911174346.png

 

I've attached both workflows below

 

olehr
8 - Asteroid

Thank you @OllieClarke, this helped 🙂

Labels