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.

Matching 2 Datasets with Addresses to assign Thirdparty ID

maria_yacoob
5 - Atom

Hi,

 

I'm very new to Alteryx and I'm trying match my internal data with an external ID. I have 2 Datasets both containing Addresses.

 

My Internal data (dataset 1 - Int Mapping) have some Addresses matched to a CSID (external ID from thirdparty data), while there are some rows with 'False' or 'Blank' under the 'True Match in CS Mapping column' with an incorrect ID or no ID.

 
Int Property IDPrimary AddressTrue Match in CS mappingCSID
107257205 Belfield RdTRUE8098104
65123260054 Range Rd 293  
1047742815 Argentia RdTRUE8855077
 

I also have table from the data provider with CSIDs (CS PropertyID):

 

Property AddressPropertyTypeRBACS PropertyID
3348 58th Ave SEIndustrial101209654650
3520-3534 48th Ave SEIndustrial100809660228
3535 44th Ave SEIndustrial100319658237
3624 44th Ave SEIndustrial101979658209

 

To increase the number of matches with a CS Data table, I would like to fuzzy match the internal data to CS Data table for the False and Blank 'True Match in CS Mapping' column, to get potential matches, its matching score and the corresponding CS Address etc..

 

Int Property IDPrimary AddressTrue Match in CS mappingCSIDMatched CSIDMatch ScoreMatched AddressMatched Property TypeMatched RBA
65123260054 Range Rd 293  No Match    
659624030 7 St SE  No Match    
660604156 64 Ave SEFALSE8884431971750490+%4156 64th Ave SEIndustrial10284
661734300 116 Ave SE  954720090+%4300 116th Ave SEIndustrial10000

 

Attached are the full tables with all the columns. Can someone please help with this? Thanks in advance!

 

Maria

 

 

1 REPLY 1
shancmiralles
11 - Bolide

hi! 

1) INT Mapping connect a (data cleansing tool )  :cleansedata: (Remove Unwanted Characters: Leading and Trailing Whitespaces) . connect a (select tool) :Select: (uncheck all columns except for Primary Address).

2) CS DATA connect a (data cleansing tool )  :cleansedata: (Remove Unwanted Characters: Leading and Trailing Whitespaces) . connect a (select tool) :Select: (uncheck all columns except for Property Address).

 

3) merge your 1 & 2 with a (union tool ) :Union: (Auto Config by Position) connect a (Fuzzy Match tool) :fuzzymatch: and connect this to the Left input anchor of a (join tool) :calgaryjoin: while connect the INT MAPPING file on the right input anchor.   

Under the :calgaryjoin: configuration:

Left: Primary Address

Right: Primary Address 

Uncheck: Left  - Primary Address

Combine the the Middle/Join output anchor and Right output anchor using a (union tool ) :Union: (Auto Config by Name) and connect this to  the Left input anchor   of a new (your 2nd) (join tool) :calgaryjoin:. Connect your CS DAta file to right input anchor of this new :calgaryjoin:.

Under the :calgaryjoin: configuration:

Left: Primary Address2

Right: Property Address 

Uncheck The columns you don't need and move the ones you need to organize.

 

your CS PropertID column is your "Matched CSID" on your desire output file .. to do this.. you can use a a formula tool  and don't add a column just click the arrow down and find the "CS PropertyID" and use th ff formula:


if IsNull([Primary Address]) then "No Match" else [CS PropertyID] endif

 

you will encounter a formula error , you need to go back to the last join tool and change the data type of the  "CS PropertyID"  from double to V_WString.


Hope this helps!

 

 

Labels