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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Ahmad7886
Frequent Visitor

How to add a legend on choropleth filled map

i have maped data on filled map, and colors are based on a numeric filed. where lowest =blue color, middle=pink, highest=green color. Now, i am unable to activate legend bar, showing lowest to highest values on a bar.

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Ahmad7886 

 

Download example PBIX file

 

Can you please supply your file and some images images of your visuals may also help.

 

If I set up a filled map and plot soem places with associated numeric values I can get this after creating a Conditional Formatting rule

colour-var.png

 

Here's the CF rule

color-var-rule.png

 

 

Now, I can add a Legend but it over-rides the colors set by the CF rule.  This si the way the visual works.

 

Is this what you are experiencing?  You said you are 'unable to activate legend bar' so I'm not sure if we're talking about the same thing.  What exactly do you mean by this?

 

Regards

 

Phil

 

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Ahmad7886 

 

Download example PBIX file

 

Can you please supply your file and some images images of your visuals may also help.

 

If I set up a filled map and plot soem places with associated numeric values I can get this after creating a Conditional Formatting rule

colour-var.png

 

Here's the CF rule

color-var-rule.png

 

 

Now, I can add a Legend but it over-rides the colors set by the CF rule.  This si the way the visual works.

 

Is this what you are experiencing?  You said you are 'unable to activate legend bar' so I'm not sure if we're talking about the same thing.  What exactly do you mean by this?

 

Regards

 

Phil

 

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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