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 August 31st. Request your voucher.

Reply
CahabaData
Memorable Member
Memorable Member

Map visual with count data

the source table is a list of addresses

 

if I create a Map visual using the State field in location it shows a bubble per state for which there is an address.... so far so good

 

I would like the count of address within each state to display - either fixed or when you float the cursor

 

is this an embedded feature to count rows grouped by state? or must I add the value '1' to each row and then do a sum?

 

www.CahabaData.com
3 REPLIES 3
AlexChen
Microsoft Employee
Microsoft Employee

Hi,

 

For example, you have a states column in your table like below:

 

4.png

 

You can create a measure :

 

countOfStates = countax(usStates, usStates[states])

 

Now, you can move countOfStates  to “Size”, see screenshot below. Bigger bubble means the value of countOfStates  is bigger.

For example, you can see that the count of “Arizona” is 4 which is the biggest. The bubble for it is also the biggest.

When you move your cursor to bubble, you can see the value of countOfStates for each bubble.

 

5.png

 

You can also move countOfStates to “Tooltips” with bubbles in the same size. See screenshot below.

 

6.png

 

Best Regards

Alex

 

thank you for that... I'll need to get more familiar with DAX and the use of measures

 

so I found a way also, which I posted - by making a query

 

so there are 2 ways to do this which is good to know and I need to better understand the pros/cons of the differences....

 

your approach with a measure leaves the original data table alone, while my approach with a query alters the data table but otherwise I'm not sure whether other issues about the approaches are important.

www.CahabaData.com
CahabaData
Memorable Member
Memorable Member

Replying to my own post:

 

Make a query with a new calculated field 'StateCount'

 

Then with Map tile highlighed, checked this new field

www.CahabaData.com

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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