Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Syndicate_Admin
Administrator
Administrator

Help - Creation of map municipalities Colombia

Good day everyone!

I'm starting in Power Bi and I saw this video about the municipalities of Colombia, I have tried to recreate it in various ways but I have not been able to. For my work this option would be very useful since I currently use Excel but it has limitations with certain municipalities in Colombia.

If someone could help me with the database or how I can configure it to look like it is in the video, it would help me a lot.

Link video: https://www.youtube.com/watch?v=lCYQ5QjSIRY&ab_channel=argemiroperezcaballero

1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hola @Syndicate_Admin, lo primero que tienes que hacer es descargarte éste fichero Json de la topologia de municipios de Colombia:
https://raw.githubusercontent.com/finiterank/mapa-colombia-js/master/colombia-municipios.json

Despúes de descargarlo, sólo tienes que insertar un mapa de formas:

Bifinity_75_0-1668336470517.png

 

acto seguido, en la configuración del mapa, selecciona "Mapa personalizado", y carga el fichero JSON:

Bifinity_75_1-1668336535411.png

 

Y ya tienes cargado el mapa por municipios.

 

El resultado:

Bifinity_75_2-1668336598168.png

 

Después si quieres detallar valores para cada municipio, utiliza el listado de municipios que trae el Json.

 

Un saludo

 

View solution in original post

8 REPLIES 8
Syndicate_Admin
Administrator
Administrator

The process for creating the map (of shapes) is as follows:

1. You search for the Municipalities of Colombia file (it can be in .shp .geojson format or whatever you find). On the DANE website (on the geoportal) you can find them.

2. Then you go to a free tool like mapshaper.org and convert it to TOPOjson format (the only format that the shape map object accepts).

3. Open the shape map object and set it to custom map

Andres117_0-1714442466466.png

In the file browser, you're going to select the TOPOjson map that you made into a mapshaper

3. Finally, you must look for a table that contains the DIVIPOLA by municipalities and the loads and power BI (this is done so that the DIVIPOLA field does martch with the implicit field it has). This DIVIPOLA puts it in location

Andres117_1-1714442549944.png

At the end you should have a map like this:

Andres117_2-1714442603970.png

This is the GDP:

Map of Municipalities Colombia.pbix

Cristian991229
New Member

Hola a todos, comparto la forma en que logré usar el archivo Json y como instalarlo

 

Debemos descargar el archivo de la página https://raw.githubusercontent.com/finiterank/mapa-colombia-js/master/colombia-municipios.json (que nos compartió anteriormente el usuario Bifinity_75)

 

Ahí se abre una página, yo le di en "guardar como"

 

Cristian991229_0-1714418049588.png

 

Guarden el archivo donde quieran

 

Ahora necesitan tener habilitado el gráfico especial de "Mapa de áreas" el cual, creo que es experimental o de beta, y toca habilitarlo manualmente. Para eso se van a "Archivo", luego, "Opciones y configuración", luego "Opciones"

 

Cristian991229_1-1714418144103.png

 

Luego van a "Características de versión preliminar" y activan la casilla "Objeto visual Mapa de formas".

 

Cristian991229_2-1714418225739.png

 

 

Reinician PowerBi y tienen el nuevo gráfico, lo seleccionan, aparece primero EEUU, en configuración del gráfico lo cambian por "personalizado" y ahí cargan el archivo Json

 

Muchas gracias a todos

 

Que #JulioZorra los bendiga

 

Syndicate_Admin
Administrator
Administrator

I could not load the JSON data well, how does the data table organize for the map to load?

Syndicate_Admin
Administrator
Administrator

Hello, I tried to connect the JSON data and I do not know how to fit well, how do I organize the data on the pop-up screen for the map to load?

Syndicate_Admin
Administrator
Administrator

Hello, excellent! Thank you very much for the explanation.

A question, to make a map of Colombia with the municipalities of San Andrés and Providencia included, but in large size, where can I find the .json?

Screenshot_20230725_201514_Chrome.jpg

Bifinity_75
Solution Sage
Solution Sage

Hola @Syndicate_Admin, lo primero que tienes que hacer es descargarte éste fichero Json de la topologia de municipios de Colombia:
https://raw.githubusercontent.com/finiterank/mapa-colombia-js/master/colombia-municipios.json

Despúes de descargarlo, sólo tienes que insertar un mapa de formas:

Bifinity_75_0-1668336470517.png

 

acto seguido, en la configuración del mapa, selecciona "Mapa personalizado", y carga el fichero JSON:

Bifinity_75_1-1668336535411.png

 

Y ya tienes cargado el mapa por municipios.

 

El resultado:

Bifinity_75_2-1668336598168.png

 

Después si quieres detallar valores para cada municipio, utiliza el listado de municipios que trae el Json.

 

Un saludo

 

After downloading the Json, how do I integrate with PowerBi? Do I charge them as data? Do I paste it into a root folder?

Good day, I also had this same doubt and found this post. I'm just starting in power bi, I was able to download the json and load the information and the map was generated

JCMD_0-1678461415793.png

But let's say relate the data I need, let's say population or X value I have not been able to add them and generate the filter you have in the photo I could not generate.

I think it's a very basic question. 🙈

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.