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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors