From the course: Power BI Weekly

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Building a dynamic Azure Map reference layer

Building a dynamic Azure Map reference layer - Power BI Tutorial

From the course: Power BI Weekly

Building a dynamic Azure Map reference layer

- [Instructor] The Azure Map visual lets us add reference layers with custom geographical outlines. These reference layers can be in a GeoJSON, shapefile, WKT, KML, or CSV format. We can upload a map outline from a local file or from a URL, which Power BI Desktop more recently lets us set up dynamically. In Power BI, I already added an Azure Map Visual to our report page with several locations already in it around the Southern California region. I also already added a slicer to give us the option to select either Santa Barbara or the Southern California coast. Let's create a DAX measure that we'll call Dynamic Map Reference Layer to tie the values in the slicer and our map reference layers together. The DAX measure will use the SELECTEDVALUE DAX function to reference the selected value in the slicer. We'll then use the IF function to say that if Santa Barbara is selected, then it returns the URL for the map outline of…

Contents