Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Address Parsing

EvansM
9 - Comet

Hello Community,

 

I need  help to parse addresses. Please refer the example below.

 

Example:            STREET_NAME               
                            E FRANKLIN ST #1
                           DWIGHT AVE 2F 

                           HILLSIDE APT 3

                           N LIBERTY #11

                           23RD DR W

 

Expected results :

 

STREET_NAME                                         STREET_TYPE                   UNIT
E FRANKLIN                                                     ST                                   #1
DWIGHT AVE                                                     AVE                                2F

HILLSIDE                                                                                                  APT 3

N LIBERTY                                                                                                #11

23RD  W                                                             DR

7 REPLIES 7
WesCannon
Alteryx
Alteryx

Hi @EvansM ,

 

You can use the Parse Output Method of the Regex Tool to get your desired results. I've attached an example workflow that uses the Regex Tool to achieve your expected results. 

 

WesCannon_0-1675708090374.png

 

I hope this helps!

 

Thanks,


Wes

 

binuacs
21 - Polaris

@EvansM One way of doing this

binuacs_0-1675708321598.png

 

EvansM
9 - Comet

Thanks @WesCannon But still is not working  I need  Street_type names also.

WesCannon
Alteryx
Alteryx

Hi @EvansM , sorry about that, was trying to post too fast. This should get you a little closer, you'll still have a few exceptions that will need to be handled when there is no street type.

EvansM
9 - Comet

@WesCannon 

 

 

EvansM_0-1675709863682.png

 

N. LIBERTY #11 

HILLSIDE APT 3

 

 

EXPECTED RESULT

 

   STREET_NUMBER             STREET_TYPE                UNIT

         N.LIBERTY                                                               #11

         HILLSIDE                              APT                                 3

       23RD                                        DR

binuacs
21 - Polaris

@EvansM 

binuacs_0-1675710517795.png

 

EvansM
9 - Comet

@binuacs Thanks this works for me.

 

Labels