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! Request now

Reply
nagavineela
Helper I
Helper I

How to display tool tip value as 0, when I don't have a record for any state in shape/filled map?

I have a requirement where I need to display 0 on the tooltip, when there is no record for the selected state in my dataset.

 

As an example - In the below-attached map, I do not have any records for Alabama in my data file, How can I display 0 when I hover on state Alabama? (Currently, it is not colored as do not have a record for Alabama)

nagavineela_0-1598989205161.png

 

 

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi  @nagavineela  ,

 

Do the suggestions from engineers make sense? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Greg_Deckler
Community Champion
Community Champion

@nagavineela - So typically, this goes something like:

Measure =
  VAR __Calc = <some calc>
RETURN
  IF(ISBLANK(__Calc),0,__Calc)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler , I created a similar function but when I filtered the map, I am still seeing the same issue of - not highlighting the states with no value.

 

Function:

Count =
Var Count1 = calculate(count(Table1[Column1]),Table1[Column2] = "X")
return if(Isblank(Count1),0,Count1)

 

In the below image, I filtered the chart based on one of my filters.

 

nagavineela_0-1598992224863.png

 

Hi @nagavineela ,

 

You may set the Value of tooltips box as "Distinct (Count)" like below.

174.png

Also you may try to change the COUNT function to DISTINCTCOUNTNOBLANK in your formula.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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