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
LaurieK
Frequent Visitor

Aggregating data to use as legend for filled map

Hi there 

 

I am having trouble creating a filled map for aggregated data. I effectively have a table of unique cases with postcode data. If I use the Map visualisation, it creates an appropriate bubble map (ie size of bubble based on number of cases in the postcode), but I want to use the filled map to colour postocdes based on the number of cases (eg <5 cases is green, 5-9 cases is yellow etc). I was able to create the categories and counts using measures, however measures can only be added as a tooltip to the filled map. I want to add this measure as a legend. Is there something simple I am missing?

I'm happy to share the pbix file, but it does not allow me to drag and drop here

 

Thanks

 

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

You can use OneDrive or similar to share sample file.

Try using the conditional formatting to change the colour of the filled map. You can do this based on field value using HEX colour codes within your dataset or with rules.

See step 5 here and come back with what specific questions you still have, as I imagine there may still be some: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-filled-maps-choropleths#cre...

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

3 REPLIES 3
AllisonKennedy
Super User
Super User

You can use OneDrive or similar to share sample file.

Try using the conditional formatting to change the colour of the filled map. You can do this based on field value using HEX colour codes within your dataset or with rules.

See step 5 here and come back with what specific questions you still have, as I imagine there may still be some: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-filled-maps-choropleths#cre...

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank you @AllisonKennedy 

 

Simple and effective solution.

You're welcome! Glad it was a simple fix. 🙂 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.

Top Solution Authors