Skip to content

Commit 97b6db4

Browse files
committed
Move section on The Data-Bound Reference Layer.
1 parent 31f4746 commit 97b6db4

File tree

2 files changed

+136
-136
lines changed

2 files changed

+136
-136
lines changed

articles/azure-maps/power-bi-visual-add-reference-layer.md

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,142 @@ The **polygons** section of the format visual pane:
147147

148148
:::image type="content" source="./media/power-bi-visual/polygons.png" alt-text="A screenshot displaying the polygons section of the format visual pane.":::
149149

150+
## Data-Bound Reference Layer
151+
152+
The Data-Bound Reference Layer enables the association of data with specific shapes in the reference layer based on common attributes.
153+
154+
To use the Data-Bound Reference layer, drag the column containing unique identifiers (can be location data or not) to the Location field of the Azure Maps Visual.
155+
156+
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/location-field.png" alt-text="A screenshot showing the location field in Power BI desktop.":::
157+
158+
Azure Maps matches these identifiers with the corresponding properties in the uploaded spatial file, automatically linking your data to the shapes on the map.
159+
160+
In scenarios with multiple properties, Azure Maps identifies a common property in each shape and compares its value with the selected data column in the Location field. It then uses the property that has the highest number of matches with the selected data column.
161+
162+
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer.png" lightbox="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer.png" alt-text="A screenshot showing the Data-Bound Reference Layer example in Power BI desktop.":::
163+
164+
If one or more shapes in the reference layer can't be automatically mapped to any data point, you can manage these unmapped objects by following these steps:
165+
166+
1. Select the **Format visual** tab in the **Visualizations** pane.
167+
1. Select **Reference layer**.
168+
1. Select **Unmapped Objects**.
169+
1. Select the **Show** toggle switch to toggle On/Off. This highlights shapes that aren't mapped to any data points.
170+
171+
Optionally, select the **Use custom colors** toggle switch to toggle On/Off custom fill and border colors for unmapped objects to make them visually distinct on the map.
172+
173+
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer-unmapped-objects.png" lightbox="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer-unmapped-objects.png" alt-text="A screenshot showing the Data-Bound Reference Layer example in Power BI desktop with unmapped objects showing in a different color.":::
174+
175+
<!----------------------------------------------------------------------------
176+
### Key matching example
177+
178+
#### Semantic model
179+
180+
| Datapoint | Country | City | Office name |
181+
|-------------|---------|----------|-------------|
182+
| Datapoint_1 | US | New York | Office C |
183+
| Datapoint_1 | US | Seattle | Office A |
184+
| Datapoint_1 | US | LA | Office B |
185+
186+
#### Reference layer data (take GeoJSON as an example)
187+
188+
```json
189+
{
190+
"type": "FeatureCollection",
191+
"features": [
192+
{
193+
"type": "Feature",
194+
"properties": {
195+
"name": "Office A",
196+
"shape": "Shape_1",
197+
"id": "Office A"
198+
},
199+
"geometry": {
200+
"type": "Polygon",
201+
"coordinates": [
202+
...
203+
}
204+
},
205+
{
206+
"type": "Feature",
207+
"properties": {
208+
"name": "Office B",
209+
"shape": "Shape_2",
210+
"id": "Office B"
211+
},
212+
"geometry": {
213+
"type": "Point",
214+
"coordinates": [
215+
...
216+
]
217+
}
218+
},
219+
{
220+
"type": "Feature",
221+
"properties": {
222+
"name": "Office C",
223+
"shape": "Shape_3"
224+
},
225+
"geometry": {
226+
"type": "Point",
227+
"coordinates": [
228+
...
229+
]
230+
}
231+
},
232+
{
233+
"type": "Feature",
234+
"properties": {
235+
"name": "Office D",
236+
"shape": "Shape_4"
237+
},
238+
"geometry": {
239+
"type": "Polygon",
240+
"coordinates": [
241+
...
242+
]
243+
}
244+
}
245+
]
246+
}
247+
```
248+
249+
#### the mapping results
250+
251+
| | Location bucket|Mapping result |
252+
|-----------------|----------------|--------------------------------------------------------------------------------|
253+
| Case 1 | Office name | Shape_1 ↔ Datapoint_2 |
254+
| | | Shape_2 ↔ Datapoint_3 |
255+
| | | Shape_3 ↔ Datapoint_1 |
256+
| | | Shape_4 ↔ x (Since there’s no datapoint with Office name “Office D”) |
257+
| Case 2 | City | Nothing is mapped, since there’s no property that contains matched City names. |
258+
259+
Note that there is a property “id” also has “Office x” values that is not being used, but instead the property “name” is used for data mapping since it has 3 datapoints matched and “id” only has 2 datapoints matched.
260+
261+
---------------------------------------------------------------------------------------------------------------------------->
262+
263+
## Conditional Formatting
264+
265+
Conditional formatting can be applied to data to dynamically change the appearance of shapes on a map based on the provided data. For instance, gradient colors can visualize various data values such as population density, sales performance, or other metrics. This is a powerful tool for combining spatial and business data to create interactive and visually compelling reports.
266+
267+
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/conditional-formatting.png" alt-text="A screenshot showing the Conditional Formatting controls for points, lines, polygons, and unmanaged objects in the reference layer control in Power BI desktop.":::
268+
269+
There are several ways to set colors to the shapes. The following table shows the priorities used:
270+
271+
| Priority | Source | Description |
272+
|----------|-------------------------------|-----------------------------------------------------------------|
273+
| 1 | Preset style in spatial files | Color and style as defined in the spatial file |
274+
| 2 | Unmapped object colors | Custom colors used when the geometry isn’t data-bound |
275+
| 3 | Legend colors | Colors provided by Legend/Series |
276+
| 4 | Conditional formatting colors | Colors provided by conditional formatting |
277+
| 5 | Custom formatting colors | User defined custom styles in the Reference Layer options in the formatting pane |
278+
| 6 | Default colors | Default colors defined in the Azure Maps visual |
279+
280+
> [!TIP]
281+
>
282+
> The Azure Maps Power BI Visual can only perform geocoding on valid location data such as geographical coordinates, addresses, or place names. If no valid location data is uploaded, data layers that depend on geocoded locations, such as heat maps or bubble layers, won’t display on the map.
283+
>
284+
> The Data-Bound Reference Layer will appear on the map as long as the data column contains unique identifiers that match properties in the spatial file, but to ensure correct results, your data column must include valid geographic information.
285+
150286
## Next steps
151287

152288
Add more context to the map:

articles/azure-maps/power-bi-visual-understanding-layers.md

Lines changed: 0 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -100,142 +100,6 @@ The general layer section of the **Format** pane are common settings that apply
100100
>
101101
> For more information on the range scaling option, see **Range scaling** in the properties table of the [Add a bubble layer] article.
102102
103-
## Data-Bound Reference Layer
104-
105-
The Data-Bound Reference Layer enables the association of data with specific shapes in the reference layer based on common attributes.
106-
107-
To use the Data-Bound Reference layer, drag the column containing unique identifiers (can be location data or not) to the Location field of the Azure Maps Visual.
108-
109-
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/location-field.png" alt-text="A screenshot showing the location field in Power BI desktop.":::
110-
111-
Azure Maps matches these identifiers with the corresponding properties in the uploaded spatial file, automatically linking your data to the shapes on the map.
112-
113-
In scenarios with multiple properties, Azure Maps identifies a common property in each shape and compares its value with the selected data column in the Location field. It then uses the property that has the highest number of matches with the selected data column.
114-
115-
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer.png" lightbox="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer.png" alt-text="A screenshot showing the Data-Bound Reference Layer example in Power BI desktop.":::
116-
117-
If one or more shapes in the reference layer can't be automatically mapped to any data point, you can manage these unmapped objects by following these steps:
118-
119-
1. Select the **Format visual** tab in the **Visualizations** pane.
120-
1. Select **Reference layer**.
121-
1. Select **Unmapped Objects**.
122-
1. Select the **Show** toggle switch to toggle On/Off. This highlights shapes that aren't mapped to any data points.
123-
124-
Optionally, select the **Use custom colors** toggle switch to toggle On/Off custom fill and border colors for unmapped objects to make them visually distinct on the map.
125-
126-
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer-unmapped-objects.png" lightbox="media/power-bi-visual/data-bound-reference-layer/data-bound-reference-layer-unmapped-objects.png" alt-text="A screenshot showing the Data-Bound Reference Layer example in Power BI desktop with unmapped objects showing in a different color.":::
127-
128-
<!----------------------------------------------------------------------------
129-
### Key matching example
130-
131-
#### Semantic model
132-
133-
| Datapoint | Country | City | Office name |
134-
|-------------|---------|----------|-------------|
135-
| Datapoint_1 | US | New York | Office C |
136-
| Datapoint_1 | US | Seattle | Office A |
137-
| Datapoint_1 | US | LA | Office B |
138-
139-
#### Reference layer data (take GeoJSON as an example)
140-
141-
```json
142-
{
143-
"type": "FeatureCollection",
144-
"features": [
145-
{
146-
"type": "Feature",
147-
"properties": {
148-
"name": "Office A",
149-
"shape": "Shape_1",
150-
"id": "Office A"
151-
},
152-
"geometry": {
153-
"type": "Polygon",
154-
"coordinates": [
155-
...
156-
}
157-
},
158-
{
159-
"type": "Feature",
160-
"properties": {
161-
"name": "Office B",
162-
"shape": "Shape_2",
163-
"id": "Office B"
164-
},
165-
"geometry": {
166-
"type": "Point",
167-
"coordinates": [
168-
...
169-
]
170-
}
171-
},
172-
{
173-
"type": "Feature",
174-
"properties": {
175-
"name": "Office C",
176-
"shape": "Shape_3"
177-
},
178-
"geometry": {
179-
"type": "Point",
180-
"coordinates": [
181-
...
182-
]
183-
}
184-
},
185-
{
186-
"type": "Feature",
187-
"properties": {
188-
"name": "Office D",
189-
"shape": "Shape_4"
190-
},
191-
"geometry": {
192-
"type": "Polygon",
193-
"coordinates": [
194-
...
195-
]
196-
}
197-
}
198-
]
199-
}
200-
```
201-
202-
#### the mapping results
203-
204-
| | Location bucket|Mapping result |
205-
|-----------------|----------------|--------------------------------------------------------------------------------|
206-
| Case 1 | Office name | Shape_1 ↔ Datapoint_2 |
207-
| | | Shape_2 ↔ Datapoint_3 |
208-
| | | Shape_3 ↔ Datapoint_1 |
209-
| | | Shape_4 ↔ x (Since there’s no datapoint with Office name “Office D”) |
210-
| Case 2 | City | Nothing is mapped, since there’s no property that contains matched City names. |
211-
212-
Note that there is a property “id” also has “Office x” values that is not being used, but instead the property “name” is used for data mapping since it has 3 datapoints matched and “id” only has 2 datapoints matched.
213-
214-
---------------------------------------------------------------------------------------------------------------------------->
215-
216-
## Conditional Formatting
217-
218-
Conditional formatting can be applied to data to dynamically change the appearance of shapes on a map based on the provided data. For instance, gradient colors can visualize various data values such as population density, sales performance, or other metrics. This is a powerful tool for combining spatial and business data to create interactive and visually compelling reports.
219-
220-
:::image type="content" source="media/power-bi-visual/data-bound-reference-layer/conditional-formatting.png" alt-text="A screenshot showing the Conditional Formatting controls for points, lines, polygons, and unmanaged objects in the reference layer control in Power BI desktop.":::
221-
222-
There are several ways to set colors to the shapes. The following table shows the priorities used:
223-
224-
| Priority | Source | Description |
225-
|----------|-------------------------------|-----------------------------------------------------------------|
226-
| 1 | Preset style in spatial files | Color and style as defined in the spatial file |
227-
| 2 | Unmapped object colors | Custom colors used when the geometry isn’t data-bound |
228-
| 3 | Legend colors | Colors provided by Legend/Series |
229-
| 4 | Conditional formatting colors | Colors provided by conditional formatting |
230-
| 5 | Custom formatting colors | User defined custom styles in the Reference Layer options in the formatting pane |
231-
| 6 | Default colors | Default colors defined in the Azure Maps visual |
232-
233-
> [!TIP]
234-
>
235-
> The Azure Maps Power BI Visual can only perform geocoding on valid location data such as geographical coordinates, addresses, or place names. If no valid location data is uploaded, data layers that depend on geocoded locations, such as heat maps or bubble layers, won’t display on the map.
236-
>
237-
> The Data-Bound Reference Layer will appear on the map as long as the data column contains unique identifiers that match properties in the spatial file, but to ensure correct results, your data column must include valid geographic information.
238-
239103
## Next steps
240104

241105
Change how your data is displayed on the map:

0 commit comments

Comments
 (0)