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
larrychang1118
New Member

Give hierarchy to the values of a column when displayed on map

Hello everyone,

 

I'm doing a covid risk map that overlays with a list of locations. The problem I wasn't able to solve is to show the color on a map with the given hierarchy to the values in a column. Specifically, we have 3 levels in the location hierarchy (state, county, city) and another column contains one of low, medium and high risk level of a location. When the data shows a city is medium level risk, we would like the map to show medium as well when we drill up to county and state, but it actually shows low. This might be because the map shows the color by the majority of lower hierarchy values or by alphabetical order of the risk level string. 

 

Is there a way to customize this?

1 ACCEPTED SOLUTION
JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @larrychang1118,

Welcome to this amazing community.

I've created a very small mockup file with a dimension Geography and a facts table that has the Risks (you could also have the registries of Risk "High, average, low, etc" on another dimension, but for the purpose of demonstration I'll let it be like this 🙂
Geography:

JoaoMarcelino_1-1652121362870.png


Risks:

JoaoMarcelino_2-1652121393866.png


The model and how tables relate:

JoaoMarcelino_5-1652121850981.png

 



That being said, I've placed the geo fields on "Location" and the Risk on "Legend". I've also given the Low, average, and high risk a value from 1 to 3.
When we choose a Country it shows the number of risks and their classification:

JoaoMarcelino_3-1652121519686.png

And so does when I choose a different granularity (City):

JoaoMarcelino_4-1652121630314.png

 

Is this what you needed? I can send you the file if you need, for inspiration.

Hope I was of assistance!
Cheers
Joao Marcelino
Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated 🙂




View solution in original post

2 REPLIES 2
JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @larrychang1118,

Welcome to this amazing community.

I've created a very small mockup file with a dimension Geography and a facts table that has the Risks (you could also have the registries of Risk "High, average, low, etc" on another dimension, but for the purpose of demonstration I'll let it be like this 🙂
Geography:

JoaoMarcelino_1-1652121362870.png


Risks:

JoaoMarcelino_2-1652121393866.png


The model and how tables relate:

JoaoMarcelino_5-1652121850981.png

 



That being said, I've placed the geo fields on "Location" and the Risk on "Legend". I've also given the Low, average, and high risk a value from 1 to 3.
When we choose a Country it shows the number of risks and their classification:

JoaoMarcelino_3-1652121519686.png

And so does when I choose a different granularity (City):

JoaoMarcelino_4-1652121630314.png

 

Is this what you needed? I can send you the file if you need, for inspiration.

Hope I was of assistance!
Cheers
Joao Marcelino
Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated 🙂




This is awesome. I didn't think of using another type of map. Thanks!

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.