Shape Layers: Create Better Power BI Map Charts📍
Learn how to navigate the Map visual efficiently in Power BI with Shape Layers

Shape Layers: Create Better Power BI Map Charts📍

You’ll find shapes - country borders, regions, areas – in almost any map ever made. But few maps utilize the full potential of shapes - not just as a visual tool, but also for navigation and data analysis. In this newsletter, we will take a deeper look at shape layers in Power BI map charts and explore how to use them to the max with Drill Down Map PRO and Shape Map PRO visuals.

Power BI map chart with country shapes and conditional formatting
Shape layers representing the boundaries of European countries

Shape Layer Uses

In Map PRO and Shape Map PRO by ZoomCharts, you can enable and configure up to 10 shape layers at the same time. Beyond just looking nice, they are also an incredible tool for navigation. Here are three ways shape layers can enhance your map charts and make for more efficient, user-friendly reports.

Highlighting Regions

Shape layers are mainly used to visually distinguish separate areas so that the user knows what data belongs to what region. Some examples:

  • Country, state, province, prefecture borders
  • Continents, economic areas, time zones
  • City districts, boroughs, administrative divisions
  • Coverage or operating area (e.g. cell tower range, delivery radius, etc.)

The best part of having support for 10 shape layers is that you can use multiple at the same time and configure each separately – for example, choose which layer is displayed at which zoom levels (such as countries at further zoom levels and states when zooming closer).

Power BI map chart with country shapes that reveals state borders when zoomed in
Highlighting US states while zooming in the Drill Down Map PRO visual

Another neat feature is conditional formatting which will automatically color each shape based on the values of all nodes within the shape – either by comparing them with other shapes, or against their own reference value (such as region-specific KPIs or targets adjusted per capita).

Power BI Map Chart with conditional formatting and reference values
Shape Layer Conditional Formatting

Aggregating Regional Insights

In addition to visual distinction, shape layers are useful for getting insights about the entire region, not just individual nodes within it. For example, you can use Shape Tooltips field to add columns or measures that will show aggregated (Sum, Avg, Median, Min, Max, etc.) insights about all data points within the area whenever the user right-clicks on a shape and reveals the tooltip. You can use separate fields for node and shape tooltips to display different data on-demand.

Power BI map chart with Shape Tooltips field that shows columns or measures in the tooltip

The above example uses data about airline traffic in European airports, but let’s imagine another use case where each node represents a retail location. Here are some ways you can use the Shape Tooltip field:

  • Sum: Total revenue across all retail locations within country or state
  • Avg: Average revenue, foot traffic or customer spending per retail location
  • Count: Number of retail locations in a region
  • Max: Best-performing retail location in the country

This is also a great way to compare actual values against targets – if you have a column with target values, add it to the Shape Tooltips field you will see the aggregated targets next to the actual values for easy side-by-side comparison. It works great when used together with conditional formatting.

Instantly Filtering Data

Let’s say the report user wants to see data just for Germany. They could go to the Filters pane and uncheck everything but Germany if you have a Country field. Or maybe you have added some kind of slicer for that. Or, they could simply click on Germany’s shape, and instantly see data just for that country – not just in the map chart, but also other charts on the report.

Cross-chart filtering with Power BI map chart, table, and donut - click on shape to apply a filter to the region
Cross-chart filtering between Map PRO and Donut PRO visuals by ZoomCharts

Clickable shapes are a great way to instantly make your report more interactive and user-friendly, and this opens opportunities to build reports where each visual analyzes data from multiple dimensions. For example, if you have a pie chart that shows product sales per segment or brand, then it can initially show the global stats, but focus on a specific region when the user clicks on a shape in the map.

Types of Shape Layers

Whenever you create a new shape layer (up to 10), the first thing you must choose is the shape layer type – each will have its own purpose and configuration process.

ZoomCharts offers two map visuals for Power BI. Map PRO offers all shape layer types, including support for external base layers and KML/GeoJSON files, but as a tradeoff, it is not Power BI certified since it means that the visual must access external resources.

Shape Map PRO is Power BI certified, but to meet the requirements, it cannot access external resources – so it does not support KML/GeoJSON shape layers or online tile servers/images as the base layer.

Built-in Shapes

Power BI Shape layers built-in shapes in ZoomCharts map charts
Built-in Shape Layers

This will be the best option for easy and convenient set-up. You can use one of the four pre-made shape layers included in ZoomCharts Drill Down Map and Shape Map visuals:

  • Australia: Map with 6 states and 3 internal territories of Australia.
  • UK: Map with 4 countries of the United Kingdom.
  • USA: Map with 50 states of the United States of America + Puerto Rico.
  • World: Map with all world countries. Pro-tip: You can use it even if your data is just in one part of the world; simply set Base Layer Settings->Auto Focus to Auto (the map will auto-zoom into area where your data is) or Fixed (you can enter custom coordinates).

In Map PRO, you can display the shape layer on top of your actual base map (i.e. OpenStreetMap or custom tileservers/images). This will make it easy to select data per country or state. In Shape Map PRO, which does not have external base layer support, you can use these built-in shapes instead of a tile server.

Lasso Tool Shapes

Lasso Tool Shape Layer

On the bottom left corner of the visual, there’s a lasso tool button. When you press it, you will activate lasso mode which can be used to create and store your own shapes. You can then create a new shape layer, select “Lasso” type in its settings, and assign your own custom shapes to that layer.

This way, you can create completely custom shapes for your own use case – not just the built-in countries or states. It’s especially useful in Shape Map PRO, which does not have access to external KML or GeoJSON shape layers due to PBI Certified requirements – this means you can still build fully custom maps locally within the visual.

Node Reach

Shape layer type - Node Reach- in Power BI Map Chart
Node Reach Shape Layer

This shape layer type may be a little bit more niche than other options, but there are use cases where it will be incredibly useful. You can add a column or measure with numeric values to the optional Node Reach Radius field, and the shape layer will draw a circle for each node based on its value in that field (in miles or kilometers).

For example, if you want to display the coverage of multiple delivery centers, then the field should contain the radius of their covered area (e.g. 5km). This shape layer type is best combined with other layers – on its own, it will be just some circles on white space, but drawn on top of a map, it will provide valuable insights for each node.

External KML/GeoJSON Files

Using KML or GeoJSON files as shape layers in Power BI map chart
External KML/GeoJSON Files Shape Layers

This option is exclusive to Map PRO, since it requires access to external resources. KML and GeoJSON files are the industry standard in mapping technology, and they allow you to store a lot of geographic information within a single file – shape overlays and their formatting properties, pins, icons, and other data. When selecting this shape layer type, you will have to provide a link to your file, which will be referenced by the visual.

For many popular use cases (like administrative divisions of a city, time zones, climate zones, etc.), you will most likely be able to find open-source files online (remember to check their license for attribution requirements!). Alternatively, you can create your own KML/GeoJSON files to achieve your own specialized mapping solution with ZoomCharts visuals.

Final Thoughts

Shape layers are useful not just for visual distinction between regions, but also for selecting data and gaining aggregated insights about the entire area at once. With these tools at your disposal, you can have a tailor-made map for your use case and create smart, user-friendly reports.

Let us know if you enjoyed a more technical and hands-on newsletter and if you would like to read more posts like this! Also, if you have any questions about shape layers or Power BI map charts in general, we would be delighted to hear them!

What are your pro tips for Power BI map charts? Share them in the comments!
Subscribe to BI-Weekly Newsletter: Data Insights by ZoomCharts


One underrated feature of Map that I really like is the ability to reference images as base layers - this means that if you have accurate enough coordinates, you can create map charts for facility or area plans. That's where the lasso tool is very useful - to manually divide it into sectors

Hafiz Muhammad Kashif

From Manufacturing to Machine Learning | Industrial Engineer Transforming Industries Through Data

3w

Very insightful

To view or add a comment, sign in

Others also viewed

Explore topics