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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Data Label on Map

Hi, I need help here to solve this issue that I'm facing on to display data label on map with combination Country & Calculated field which is to show latest month count.

 

The formula is like this:

Country - Facility ID = 'Facility'[Country] &"-"& CALCULATE([CountD Facility ID 2],
FILTER( ALL(DateSelector[YearMonth]),
DateSelector[YearMonth] = DATE(YEAR(MAX(DateSelector[YearMonth])),MONTH(MAX(DateSelector[YearMonth])),DAY(DateSelector[YearMonth]))))
 
But the data label show only country like this:
fac.PNG

 

However, when i create separate measure to have the latest month value and put in tooltip, the tooltip works as it shows the latest value. 

 

And does anyone know that if possible i can have the data label on Filled Map?

 

Thank you in advance! 🙂

6 REPLIES 6
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Please modify above formula to:

 
Country - Facility ID =
'Facility'[Country] & "-"
    & CALCULATE (
        [CountD Facility ID 2],
        FILTER (
            ALLSELECTED ( DateSelector ),
            DateSelector[YearMonth]
                = CALCULATE ( MAX ( DateSelector[YearMonth] ), ALLSELECTED ( DateSelector ) )
        )
    )

 

 
Best regards,
Yuliana Gu
Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for the reply! But still the map just showing country and dash, not the calculation. I did test your formula and it works only in tooltip the same with what I have now.

Hi @Anonymous,

 

In my test, the data label could show combination values correctly on Map visual. Please update your Power BI desktop to the latest version for a test. If problem persists, please share your sample .pbix file so that I can check for you. Do mask the sensitive data before uploading, just share with the dummy data.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Here is the link to sample workbook: link

 

Thanks.

Regards,

ssaz

@Anonymous I dont think you can do this, as soon as you add the value to the country, data category for your calculated field will change to non-geographic and you will not able to plot the values on the map.

 

Only solution I can think of is create a measure and add use that measure as tooltip 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Can you share your sample workbook?

 

Highly Appreciated 🙂

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.