Happy 8th birthday to the Maveryx Community! Take a walk down memory lane in our birthday blog, and don't miss out on the awesome birthday present that all Maveryx Community members get to take advantage of!
Bold Text Example

The localized versions of the Core Certification will be discontinued on September 22, 2023. To take the exam in your preferred language, please schedule it before this date. The Core exam will still be available in English at any time after September 22, 2023. If future versions of the Core Certification exam are localized, we will promptly announce their release dates.

alteryx Community

# Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
###### IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

## Challenge #54: Data Prep Address Parsing

8 - Asteroid

I used this challenge to get to grips with how to use Google's Geocoding API to download address information. Great practice and a shoutout to @mceleavey whose step-by-step guide is perfect.

Spoiler
8 - Asteroid

Thanks for the challenge! Here is my solution:

7 - Meteor

Added a filter to highlight addresses w/o a zip

Spoiler

7 - Meteor

Spoiler

8 - Asteroid

Number 13

Had to use words like St, Street, Ave etc to get the city name

Spoiler

17 - Castor

Hi,

Sharing my solution.

I saw that there are much more efficient ways of doing this but I will stay with my solution.

Spoiler
8 - Asteroid

My solution, from a while ago

8 - Asteroid

Loved this challenge! I don't know how to use Regex formulas, so I used "normal" formulas.

Spoiler

I used 4 formulas:

ZIP Code:

IF EndsWith([Address Text], "0") OR
EndsWith([Address Text], "1") OR
EndsWith([Address Text], "2") OR
EndsWith([Address Text], "3") OR
EndsWith([Address Text], "4") OR
EndsWith([Address Text], "5") OR
EndsWith([Address Text], "6") OR
EndsWith([Address Text], "7") OR
EndsWith([Address Text], "8") OR
EndsWith([Address Text], "9")
THEN Right([Address Text], 5)
ELSE Null()
ENDIF

State
IF IsNull([ZIP Code])
THEN Right([Address Text],2)
ELSE ReverseString(Substring(ReverseString([Address Text]),6,2))
ENDIF

City (Part 1)
IF IsNull([ZIP Code]) THEN
ReverseString(GetWord(ReverseString([Address Text]), 2))+" "+ReverseString(GetWord(ReverseString([Address Text]), 1))
ELSE
ReverseString(GetWord(ReverseString([Address Text]), 3))+" "+ReverseString(GetWord(ReverseString([Address Text]), 2))
ENDIF

City (Part 2)
IF StartsWith([City], "Street ")
THEN TrimLeft([City],"Street ")
ELSEIF
StartsWith([City], "St ")
THEN TrimLeft([City],"St ")
ELSEIF
StartsWith([City], "Ave ")
THEN TrimLeft([City],"Ave ")
ELSEIF
StartsWith([City], "Avenue ")
THEN TrimLeft([City],"Avenue ")
ELSE
[City]
ENDIF

11 - Bolide
Spoiler

8 - Asteroid

🙂