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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Map region in Canada by province

Hello,

 

I need help as I have some data by region in Canada;

 

West

East

Ontario

Quebec

 

 

I need to create a map for these regions for shipments. I have created a table with all province, with reference to the region;

 

ex: 

 

ProvinceRégion

Colombie-BritanniqueWest
AlbertaWest
ManitobaWest
SaskatchewanWest
OntarioOntario
QuebecQuebec
Nouveau-BrunswickEast
Nouvelle-EcosseEast
Ile-du-Prince-ÉdouardEast
Terre-NeuveEast
LabradorEast

 

What I want to do is to create the Map with the propre region; East, but I want the choropleth map to be represented with all provinces included in the region. 

 

West would be

 

Colombie-BritanniqueWest
AlbertaWest
ManitobaWest
SaskatchewanWest

 

The other issue is that I cannot create a relation without unique values in the relationship. I have created a "dummy" table showing just the West-East-Ontario-Quebec and have linked my data table to it and then that table to the provinces one.

 

Is there a way to get this done in PowerBI? Although I am not able to show any Map, (unless I just take one region for East and one region for West).

 

Thanks

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @Anonymous,

For the first issue, from your description, I guess you want to show the filter region in the map, right? If so, you could refer to below steps:

1.I have entered some sample data to test for your problem.

B.PNG

2.Create a Map visual and Create a Slicer visual. Now you can filter the region you want to show in the map by the slicer.

A.PNG

You can also download the PBIX file to have a view. If I misunderstand you, please let me know in time.

https://www.dropbox.com/s/ibxezk2quq8qywu/Map%20region%20in%20Canada%20by%20province.pbix?dl=0

 

For the second issue, Power BI is not supporting the many-to-many relationship currently. Power BI can only create relationships between 2 tables if at least one of the two selected columns hosts a distinct, unique list of the key values, that is why you need to create a dummy table which has the distinct value. You could refer to this blog: https://blogs.technet.microsoft.com/cansql/2016/12/19/relationships-in-power-bi-fixing-one-of-the-columns-must-have-unique-values-error-message/

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-danhe-msft
Employee
Employee

Hi @Anonymous,

For the first issue, from your description, I guess you want to show the filter region in the map, right? If so, you could refer to below steps:

1.I have entered some sample data to test for your problem.

B.PNG

2.Create a Map visual and Create a Slicer visual. Now you can filter the region you want to show in the map by the slicer.

A.PNG

You can also download the PBIX file to have a view. If I misunderstand you, please let me know in time.

https://www.dropbox.com/s/ibxezk2quq8qywu/Map%20region%20in%20Canada%20by%20province.pbix?dl=0

 

For the second issue, Power BI is not supporting the many-to-many relationship currently. Power BI can only create relationships between 2 tables if at least one of the two selected columns hosts a distinct, unique list of the key values, that is why you need to create a dummy table which has the distinct value. You could refer to this blog: https://blogs.technet.microsoft.com/cansql/2016/12/19/relationships-in-power-bi-fixing-one-of-the-columns-must-have-unique-values-error-message/

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.