ArcGIS for Power BI matches locations in the data to locations on a map. The more you organize and prepare the data before you add it to the map, the more accurate the map results will be.
When you add a data layer to a map, you choose the location type that best represents the information. To ensure best accuracy, prepare and organize your data that aligns with location types.
Location types
The following location types are used:
| Location type | Value | Description |
|---|---|---|
Coordinates | Latitude, Longitude |
|
Location | For example, Address |
|
Location |
| |
Location | GeoJSON |
See the prepare data for GeoJSON section below. |
Standard administrative boundaries | See the Standard administrative boundaries section below. | |
Standard administrative boundaries
When you use standard administrative boundaries in the Location field, ArcGIS for Power BI first searches for specific settings in the column's data category metadata. If the data is in the State or Province, Postal code, County, or Country/Region category, ArcGIS for Power BI uses a standard geography query to locate the items on the map.
Note:
In some cases, a location, such as a ZIP code, may be associated with nonresidential post office boxes or related nonresidential services. These locations do not have boundaries associated with them, and the GeoEnrichment Service does not maintain demographic data for this type of location. If you are creating a map using nonresidential locations, use the Points location type. Using the Boundaries location type will result in errors during geocoding.
If no metadata is found, ArcGIS for Power BI searches for supported keywords in the name of the data fields that correlate to standard administrative boundaries. The following table lists the standard administrative boundaries and related keywords. Keywords are not case sensitive.
| Location type | Supported keywords | Shape type |
|---|---|---|
Address | city, cities, addr, address, street, town, capital | Point |
United States state | state, states | Polygon |
ZIP code | zip, zips, zipcode, zipcodes, zip code, zip codes, postal code | Polygon |
United States county | county, counties | Polygon |
World city | city, cities | Point |
World country | country, countries | Polygon |
If a keyword is found, ArcGIS for Power BI uses the ArcGIS GeoEnrichment Service to add polygon locations to the map. For a complete list of supported countries, see GeoEnrichment coverage.
Administrative boundaries are added to the map as polygons, which represent both the shape and the location of the place.
If ArcGIS for Power BI cannot find recognizable metadata or keywords, it sends the data in text form to the ArcGIS World Geocoding Service to find point locations. In many cases, this results in inaccurate findings because there is not enough information to determine the locations. Use the Location type tab on the Layers pane to specify the location parameters.
Prepare data for GeoJSON
ArcGIS for Power BI supports adding a GeoJSON file from ArcGIS for Excel.
See the ArcGIS for Excel add a data layer to your map topic.
Considerations
Imported GeoJSON containing multiple geometry types can result in switching the supported geometry type dynamically. For example, point geometries are displayed initially, but after filtering, polygon geometries are displayed.
- After import, if your data contains location information that has been formatted using GeoJSON, it appears in the Geometry column. Drag the Geometry value into the Location field well to draw GeoJSON locations on the map.
- GeoJSON supports points, mutlipoints, lines, and polygons.
- It is recommended that you filter the GeoJSON data by geometry type before importing into Microsoft Power BI. This ensures that only a single geometry type is represented in the data.
- If the JSON data is null/empty, truncated or malformed, then GeoJSON will not be detected, and string values are analyzed in the Location field well, and geocoded as names, addresses, and so on.
Limitations
Only one geometry field is currently supported. If there are multiple geometry fields, only the first field (Geometry1) will be supported. Because of text limitations, longer data is split into multiple fields. See text type in Microsoft documentation.
- GeoJSON Geometry Collection type is not supported.