Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

Parse Name, Address Line 1, City, State and Zip

Highlighted
6 - Meteoroid

Hello friends, 

My dataset has the name of the store, address line 1, City, State, and 5-digit Zip code, all in one cell of Excel. Picture below. I have also attached the Excel file. Essentially I would like to have each of these in a separate column. I am fairly new to Alteryx and am struggling to figure out how I can achieve my goal. Any kind of help is much appreciated. Thank you so much! 

itssumanb_0-1605883495082.png

 

Highlighted
17 - Castor

Hi @itssumanb 

 

Here is a workflow for the task.

You parse tool with below config:

atcodedog05_0-1605884253743.png

 

(.*)\s(\w*),\s(\w*)\s(\w*)

 

Output:

atcodedog05_1-1605884280147.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

@atcodedog05 I think you're missing Address Line 1. And City is sometimes missing the first word.

 

Here's my best attempt.. It's a little clumsy because it's difficult separating the address line 1 from the city.

 

Highlighted
6 - Meteoroid

Hi

Highlighted
6 - Meteoroid

Hi Philip! 

This is perfect. Anything I need to be careful of as my input data contents may change every time I run my workflow? Thank you so much again! 

Highlighted
17 - Castor

@itssumanb 

 

Replay back on this post tagging @PhilipMannering he will be able to help you help you out if you face any more issues on this 🙂

 

Its free text, little risky 😉

Highlighted
17 - Castor

Hi @PhilipMannering 

 

I just saw your regex. manh! its intense 😅

Amazing work 😎

Highlighted
6 - Meteoroid

@atcodedog05 @PhilipMannering  thank you both! 

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Hi @itssumanb 

 

There's a lot of nuance/edge cases to parsing addresses. The string parsing method @atcodedog05 and @PhilipMannering posted is quick and effective for these cases, but may not always provide the desired result depending on how the inputs vary. The best strategy is to use tools specifically for parsing addresses that references address databases like CASS (Coding Accuracy Support System). 

 

Alteryx has the Parse Address tool: 

https://help.alteryx.com/current/designer/parse-address-tool

This tool takes the single input field, compares those components using CASS, and outputs the individual fields you desire. The standardized field output can then be used for geocoding or mail circulation. The drawback is that access to this tool requires the purchase of the location insights data from Alteryx. 

 

 

The strategy I typically recommend is to use the Google Geocoder API to return standardized address fields and latitude/longitude information. I recommend the Google Geocoder macro built by @jdunkerley79:
https://gallery.alteryx.com/?fbclid=IwAR0SmVVRAAZf-YZr_LyDSzsYYZDw0aaDkF3PH1vCVUVPtxZf0_NVNCUGvUM#!a... 

 

You'll need a Google API to use this tool, which has limited free use but might be a good idea to spend money on if you plan to do this frequently in your business.

https://cloud.google.com/maps-platform/pricing 

 

20201120-GoogleGeocoder.JPG

Labels