This document provides guidance on creating maps in Power BI. It recommends building a strong geography dimension with codes instead of descriptions, and including latitude and longitude. It discusses various out-of-the-box map visuals like filled maps, shape maps, and ArcGIS maps. It also covers creating custom maps using TopoJSON files with R or Mapbox. Links are provided for additional map resources.
3. Lorenzo Vercellati
Power BI Solutions Architect @ SolidQ
SQL Saturday Speaker, Power BI Trainer
Working on Database since 2000, on SQL Server since 2007
PowerBI User Group Milan Administrator
Medieval History Graduate, Homebrewer
@supergimi
https://www.linkedin.com/in/lorenzovercellati/
8. Build a Strong Geography Dimension
Use Codes:
• ISTAT Codes (M052, F704 instead of Vimercate or Monza)
• State or Province Codes (AN, NY, IDF instead of Ancona, New York, Ile-de-France)
• Country Codes (ITA, USA, MEX instead of Italy, United States, Mexico)
Descriptions depends on too many factors
… and ERRORS!
10. Build a Strong Geography Dimension
Build a multi-level Hierarchy
Asia <continent>
Africa <continent>
Europe <continent>
North America <continent>
Canada <country>
Mexico <country>
United States of America <country>
New England <region>
Midwest <region>
California <region>
Sacramento Valley <region>
Sierra Nevada <region>
Bay Area <region>
Berkeley <city>
Palo Alto <city>
San Francisco <city>
Mission <district>
Golden Gate <district>
Castro-Noe Valley <district>
11. Build a Strong Geography Dimension
Use Latitude and Longitude as soon as possible
21. Shape Map
• A shape map is a visual built to show
comparisons of regions on a map by
applying different colors to each
region.
• It is based on shapefile, a storage
format developed by Esri, nowadays
universally recognized as standard for
storing geospatial information.
• A shapefile format spatially describes
vector features: points, lines,
polygons. It is therefore commonly
used to represent geometric locations
for data and its attributes
22. Shape Map
• Enabled in Preview Features
• Use mapshaper.org to convert to
TopoJSON
• If necessary, update manually
your TopoJSON
23. Custom Shape Map
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
20
21
22
23
24
25
26
27
28
30
31
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
49
51
52
53
54
80
78
79
85
76
77
86
You can create your custom shape map and use it in Power
BI
You have to edit a topojson file, that generates the map
You can edit directly topojson file
You can use an online converter
Topojson is a subtype of geojson file type
Topojson structure consists in:
A list of arcs
A list of object with references to a sequence of contiguous
arcs
24. Custom Shape Map
Arcs are defined by an entry point and a sequence of
point.
Arcs have a defined direction
Object defined by arcs with reverse direction are
referenced by –arcs + 1
76
-77
An object can be a Polygon or a MultiPolygon
Every Polygon is defined by a set of contiguous arcs.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
20
21
22
23
24
25
26
27
28
30
31
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
49
51
52
53
54
80
78
79
85
76
77
86
26. ArcGIS Maps
• A GIS (Geographic Information
System) is a computer-based
tool that analyzes, stores,
manipulates and visualizes
geographic information on a
map.
• ArcGIS is the software developed
by Esri, for creating and using
maps, performing spatial
analysis, sharing and discovering
geographic information.
27. ArcGIS Maps
• Circles, Cluster, Heatmap
• Limit on points
• No drilldown
• Built in reference layers and
infographics for US only
• Premium subscription for
additional features
29. Maps with R
• R is the most common
open source language for
statistical computing and
graphics.
• R provides a wide variety
of statistical and graphical
techniques
30. Maps with R
• R scripts are fully supported in Power
BI, offering the way to perform
analytical and statistical analysis and to
create compelling visuals. The
integration of R in PowerBI grants
access to a rich array of data
visualizations not present in the
standard PowerBI set.
• R is shipped with a huge number of
packages for spatial data analysis and
plotting. Many sort of maps
(choropleths, map projections,
topological maps, animated maps, …)
and sketch options are available with R.
31. Map with R
• R Engine
• R packages (ggplot2, maps)
• R knowledge
35. Mapbox
• Requires access token
• Shows large number of points
• Multiple background layers,
including custom
• Cluster, Heatmap, Circles &
Choropleth
• Need to aggregate data
manually
43. Synoptic Panel
• https://synoptic.design/
• Time-intensive compared to
other Power BI map options
• Some templates available in the
Synoptic gallery
• Fully customized areas for any
image
50. “To put a city in a book, to put the world on one sheet of paper: maps are the
most condensed humanized spaces of all...They make the landscape fit
indoors, make us masters of sights we can't see and spaces we can't cover.”
-Robert Harbison