cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
lukaspowerbi Regular Visitor
Regular Visitor

Zip Codes in Asian Countries won't work

I am using a bubble map with over 45k datapoints to display.

I have Country and Zip Code set up as a hierarchy so I can go from countries to more granular data. (picture below)

 

 

All works fine on a country level. However, when I go to the zip code level asian countries wouldn't show up at all (China, Singapore, Japan for example). It was happening for Portugal zip codes but getting rid of dashes or trimming the zip codes helped and it would pick them up after some cleaning.

 

Is there some kind of document on country zip codes format so that power bi recognizes them smoothly?

Any tip how to overcome this? I work with one dataset but can do any zipcode cleaning in SQL. 

Capture.JPG

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Zip Codes in Asian Countries won't work

Hi lukaspowerbi,

 

Similar case and blog for your reference:

https://community.powerbi.com/t5/Desktop/How-can-I-locate-Places-on-map-using-PostalCode/td-p/123407

https://powerbi.microsoft.com/en-us/blog/retail-location-analytics-using-power-bi/

 

Also, please refer to tips to improve the underlying dataset below:

 

1. Categorize geographic fields in Power BI Desktop

In Power BI Desktop, you can ensure fields are correctly geo-coded by setting the Data Category on the data fields. Select the desired table, go to the Advanced ribbon and then set the Data Category to Address, City, Continent, Country/Region, County, Postal Code, State or Province. These data categories help Bing correctly encode the date. To learn more, see Data categorization in Power BI Desktop. If you are live connecting to SQL Server Analysis Services, you will need to set the data categorization outside of Power BI using SQL Server Data Tools (SSDT).

2. Use more than one location column.
Sometimes, even setting the data categories for mapping isn't enough for Bing to correctly guess your intent. Some designations are ambiguous because the location exists in multiple countries or regions. For example, there's a Southampton in England, Pennsylvania, and New York.

Power BI uses Bing's unstructured URL template service to get the latitude and longitude coordinates based on a set of address values for any country. If your data doesn't contain enough location data, add those columns and categorize them appropriately.

For example, if you only have a City column, Bing may have a hard time geo-coding. Add additional geo columns to make the location unambiguous. Sometimes all it takes is adding one more location column to the dataset - in this case state/province. And don't forget to categorize it properly, see #1 above.

Make sure when each field only has the specific information tied to the categorization. For example, your City location field should be Southampton, not Southampton, New York. And Address location fields should be 1 Microsoft Way and not 1 Microsoft Way, Redmond, WA.

3. Use specific Latitude and Longitude

Add latitude and longitude values to your dataset. This removes any ambiguity and returns results more quickly. Latitude and Longitude fields must be in Decimal Number format, which you can set in the data model.

4. Use Place category for columns with full location information

While we encourage you to use geo-hierarchies in your maps, if you must use a single location column with full geographical information, you can set the data categorization to Place. For example, if the data in your column is full addresses, such as 1 Microsoft Way, Redmond Washington 98052, this generalized data category will work best with Bing.

 

Regards,

Jimmy Tao

1 REPLY 1
Community Support Team
Community Support Team

Re: Zip Codes in Asian Countries won't work

Hi lukaspowerbi,

 

Similar case and blog for your reference:

https://community.powerbi.com/t5/Desktop/How-can-I-locate-Places-on-map-using-PostalCode/td-p/123407

https://powerbi.microsoft.com/en-us/blog/retail-location-analytics-using-power-bi/

 

Also, please refer to tips to improve the underlying dataset below:

 

1. Categorize geographic fields in Power BI Desktop

In Power BI Desktop, you can ensure fields are correctly geo-coded by setting the Data Category on the data fields. Select the desired table, go to the Advanced ribbon and then set the Data Category to Address, City, Continent, Country/Region, County, Postal Code, State or Province. These data categories help Bing correctly encode the date. To learn more, see Data categorization in Power BI Desktop. If you are live connecting to SQL Server Analysis Services, you will need to set the data categorization outside of Power BI using SQL Server Data Tools (SSDT).

2. Use more than one location column.
Sometimes, even setting the data categories for mapping isn't enough for Bing to correctly guess your intent. Some designations are ambiguous because the location exists in multiple countries or regions. For example, there's a Southampton in England, Pennsylvania, and New York.

Power BI uses Bing's unstructured URL template service to get the latitude and longitude coordinates based on a set of address values for any country. If your data doesn't contain enough location data, add those columns and categorize them appropriately.

For example, if you only have a City column, Bing may have a hard time geo-coding. Add additional geo columns to make the location unambiguous. Sometimes all it takes is adding one more location column to the dataset - in this case state/province. And don't forget to categorize it properly, see #1 above.

Make sure when each field only has the specific information tied to the categorization. For example, your City location field should be Southampton, not Southampton, New York. And Address location fields should be 1 Microsoft Way and not 1 Microsoft Way, Redmond, WA.

3. Use specific Latitude and Longitude

Add latitude and longitude values to your dataset. This removes any ambiguity and returns results more quickly. Latitude and Longitude fields must be in Decimal Number format, which you can set in the data model.

4. Use Place category for columns with full location information

While we encourage you to use geo-hierarchies in your maps, if you must use a single location column with full geographical information, you can set the data categorization to Place. For example, if the data in your column is full addresses, such as 1 Microsoft Way, Redmond Washington 98052, this generalized data category will work best with Bing.

 

Regards,

Jimmy Tao