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
Anonymous
Not applicable

Combine column entries and count into single calculated column to enable labelling on Bubble Map

Hi all, 

 

I have a map with various locations on it - e.g.:

 

UKDave
FranceGill
SpainFrancis
UKMoira
FinlandHan

 

(it goes on for longer...)

 

And I'd like to label the bubble map with more than just the country name when I use it as a location, so thought that I could combine the country name and a count of the country name into a single calcuated column so the end result would be

 

UK 2

France 1

Spain 1

Finland 1

 

And I could then combine these into the single field that I could use as location so that the data labels would read "UK: 2" as opposed to just "UK".

 

I feel like I am missing an obvious trick here and being dim, but any guidance would be appreciated.  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Sorry for the slow reply, I had issues logging in.

 

I wanted to data to be displayed on the map without requiring a tooltip (so I could capture the image and share it and not lose the info), so I needed a calculated column:

 

BubbleCount = 'Table'[Country]&" : "&CALCULATE(COUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Country]))
 
Which works! It did however cause an issue with some countries randomly being put in the wrong place, but I can work around that. Seems odd to not have this kind of feature (more detailed labelling) as standard in PowerBI. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Sorry for the slow reply, I had issues logging in.

 

I wanted to data to be displayed on the map without requiring a tooltip (so I could capture the image and share it and not lose the info), so I needed a calculated column:

 

BubbleCount = 'Table'[Country]&" : "&CALCULATE(COUNT('Table'[Country]), ALLEXCEPT('Table', 'Table'[Country]))
 
Which works! It did however cause an issue with some countries randomly being put in the wrong place, but I can work around that. Seems odd to not have this kind of feature (more detailed labelling) as standard in PowerBI. 
jgeddes
Super User
Super User

If you create the measure

Formatted Country Measure =
var _count =
CALCULATE(COUNT(countryTable[Country]), ALLEXCEPT(countryTable,countryTable[Country]))
Return
SELECTEDVALUE(countryTable[Country]) & ": " & _count
 
and place it into the tooltips field you will end up with the result
jgeddes_0-1662584447139.png

If you want just the formatted measure as the tooltip you can get that using a custom tooltip page.

Quickly the result would be

jgeddes_1-1662584535792.png

But once you get into custom tooltips there are plenty of options available to make the tooltip look/say what you want.





Did I answer your question? Mark my post as a solution!

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