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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Conditional formatting in Filled Map with slicers, measure as a tooltip

Hey there. This one's got me scratching my head for a few days now but I'm still not able to make headways . .

 

I have created a filled map (color map) with conditional formatting to render different counties in the USA in different colors. The conditional formatting depends on a measure I created, which calculates the percentage of cases won for each county. If the percentage is above 70 then render it green, if it's below 50 then render it red and so on. Below is the definition of the measure :

 

Win % by County =
DIVIDE(
CALCULATE(
COUNT('Win % by County'[Win_Flag]), FILTER('Win % by County', 'Win % by County'[Win_Flag] = "Y"))
, [Number of XX], 0)
 
"Number of XX" is another measure which is being used inside this measure. I also have a couple of slicers
for date and another category, which filters the number of datapoints based on selection. What I expected to happen
was that when I make selection in the slicer(s), the number of datapoints would change in the context and
consequently the colors in which the counties rendered would change. However, that does not seem to happen.
Also, I am using both of the above mentioned measures in the tooltip well. However, whenever I slice the data
, on some datapoints PBI shows only one tooltip info. and the other one vanishes. At the same time, some datapoints
show both tooltip fields when hovered over.
 
Any help is appreciated guys. This one is really taking up so much of my time. Is there something obvious that I am missing ?
Sorry I couldn't post anything other than the description of problem I'm facing. Confidentiality issues and all . .
Thanks in advance.
2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

You may need to add ALL function in [Number of XX], see more details as below:

https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept/

 

and if not your case, please share a simple sample pbix file, that will be great help.

 

Regards,

Lin

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

@Anonymous 

Require at least some piece of information. at least in an excel with some dummy data with a note what is needed helps to you answer your question. please share your Kudoes




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors