Skip to content

Commit 2bd53e6

Browse files
committed
new geocode article - power bi visual
1 parent 1e37cfa commit 2bd53e6

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed
161 KB
Loading
93.1 KB
Loading
93.2 KB
Loading
55.9 KB
Loading
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Geocoding in Azure Maps Power BI visual
3+
titleSuffix: Microsoft Azure Maps
4+
description: In this article, you will learn about geocoding in Azure Maps Power BI visual.
5+
author: stevemunk
6+
ms.author: v-munksteve
7+
ms.date: 11/29/2021
8+
ms.topic: conceptual
9+
ms.service: azure-maps
10+
services: azure-maps
11+
---
12+
13+
# Geocoding in Azure Maps Power BI Visual
14+
15+
Azure Maps uses the latitude and longitude coordinate system to locate places on the map. The Azure Maps Power BI Visual provides latitude and longitude fields that you can use to pinpoint a specific location on the map, however most data sources use an address to pinpoint a location as opposed to latitude and longitude values.
16+
17+
The Azure Maps Power BI Visual now provides a **Location** field that accepts address values that can be used to pinpoint a location on the map using geocoding.
18+
19+
Geocoding is the process of taking an address and returning the corresponding latitude/longitude coordinate. The address provided determines the granularity it is possible to geocode, such as a city as opposed to a specific street address.
20+
21+
:::image type="content" source="media/power-bi-visual/geocode.png" alt-text="A screenshot showing the Visualizations and fields panes in Power BI desktop with the Azure Maps visual location field highlighted.":::
22+
23+
## The location field
24+
25+
The **Location** field in the Azure Maps Power BI Visual can accept multiple values, such as country, region, state, city, street address and zip code. By providing multiple sources of location information in the **Location** field you help to guarantee more accurate results and eliminate ambiguity that would prevent a specific location to be determined. For example, there are over twenty different cities in the United States named *Franklin* as well as at least two in Australia and one in Canada.
26+
27+
## Use geo-hierarchies to drill down
28+
29+
When entering multiple values into the **Location** field you create a geo-hierarchy. Geo-hierarchies enable the hierarchical drill down features in the map, allowing you to drill down to different "levels" of location.
30+
31+
:::image type="content" source="media/power-bi-visual/drill-down.png" alt-text="A screenshot showing the Visualizations and fields panes in Power BI desktop with the Azure Maps visual location field highlighted.":::
32+
33+
| Button | Description |
34+
|:-:|-------------------------------------------------------------------------------------------|
35+
| 1 | The drill button on the far right, called Drill Mode, allows you to select a map Location and drill down into that specific location one level at a time. For example, if you turn on the drill-down option and select North America, you move down in the hierarchy to the next level -- states in North America. For geocoding, Power BI sends Azure Maps country and state data for North America only. The button on the left goes back up one level. |
36+
| 2 | The double arrow drills to the next level of the hierarchy for all locations at once. For example, if you are currently looking at countries and then use this option to move to the next level, states, Power BI displays state data for all countries. For geocoding, Power BI sends Azure Maps state data (no country data) for all locations. This option is useful if each level of your hierarchy is unrelated to the level above it. |
37+
| 3 | This is similar to the drill-down option, except that you don't need to click on the map. It expands down to the next level of the hierarchy remembering the current level's context. For example, if you are currently looking at countries and select this icon, you move down in the hierarchy to the next level -- states. For geocoding, Power BI sends data for each state and its corresponding country to help Azure Maps geocode more accurately. In most maps, you will either use this option or the drill down option on the far right, so you can send Azure as much information as possible to get accurate location information. |
38+
39+
## Categorize geographic fields in Power BI
40+
41+
To ensure fields are correctly geocoded, you can set the Data Category on the data fields in Power BI. In Data view, select the desired column. From the ribbon, select the Modeling tab and then set the Data Category to Address, City, Continent, Country/Region, County, Postal Code, **State, or Province. These data categories help Azure correctly encode the data. 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).
42+
43+
:::image type="content" source="media/power-bi-visual/data-category.png" alt-text="A screenshot showing the data category drop down list in Power BI desktop.":::
44+
45+
## Next steps
46+
47+
Learn more about the Azure Maps Power BI visual:
48+
49+
> [!div class="nextstepaction"]
50+
> [Get started with Azure Maps Power BI visual (Preview)](power-bi-visual-get-started.md)
51+
52+
> [!div class="nextstepaction"]
53+
> [Understanding layers in the Azure Maps Power BI visual](power-bi-visual-understanding-layers.md)
54+
55+
Learn about the Azure Maps Power BI visual Pie Chart layer that uses geocoding:
56+
57+
> [!div class="nextstepaction"]
58+
> [Add a pie chart layer](power-bi-visual-add-pie-chart-layer.md)

0 commit comments

Comments
 (0)