Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

Replicating VLOOKUP approximate match to find country in address string

$
0
0

I have two tables:

Addresses: This has a single column with a list of addresses. 
Country Data Table. This is a data table of country names, continents, country codes etc

All of the addresses have a defined country and I know that the country is labelled correctly as it was chosen from a form, not typed in by a user. 

How can I therefore do an approximate match and extract the country from the address by comparing it against the country table. I want to create a secod column next to the address column for Country

For example with the following address:

Block 10, Villa Concerto, Symphony Bay, Sai Kung, Hong Kong

I want to compare that string against the Country Name column of my country table, match the Hong Kong part and return just that.

I have tried a different way use the Power BI maps however its ability to identify non-western addresses is hugely sub-par and many of my addresses do not appear e.g. China, India, Japan. 



Viewing all articles
Browse latest Browse all 217177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>