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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
LyonsBI_BRL
Helper III
Helper III

Map Data Labels - Count Number of Entries Per State

I'm looking to setup a Calculated Column so that when I turn on Category labels for the MAP within PowerBI it displays the name of the State (i.e. Queensland, South Australia), it'll display the name of the State and the Value (how many entries are from that state)

 

Right now it's showing me the Latitude and Longitude. How could I write a calculated column that would show the State (i.e. Queensland: 27) instead of the Lat & Long

 

I know the first part would be something along the line of 

[value.SchoolState] & ":  " & "Whatever the formula is here"

 

LyonsBI_BRL_0-1622107423697.png

Thanks!

1 ACCEPTED SOLUTION
LyonsBI_BRL
Helper III
Helper III

Found out how to accomplish this! 

So if you are attempting to calculate values outside of it being a number there is a way to do this.

 

Number of Submissions Per State = 
'All Applicants'[SchoolState] & ":  " & 
CALCULATE(COUNTA('All Applicants'[SchoolState]),
ALLEXCEPT('All Applicants', 'All Applicants'[SchoolState]))

 

This in turn will calculate the number of times a particular item shows up within that State, Employee, Location etc. 

LyonsBI_BRL_0-1622186589881.png

 

View solution in original post

1 REPLY 1
LyonsBI_BRL
Helper III
Helper III

Found out how to accomplish this! 

So if you are attempting to calculate values outside of it being a number there is a way to do this.

 

Number of Submissions Per State = 
'All Applicants'[SchoolState] & ":  " & 
CALCULATE(COUNTA('All Applicants'[SchoolState]),
ALLEXCEPT('All Applicants', 'All Applicants'[SchoolState]))

 

This in turn will calculate the number of times a particular item shows up within that State, Employee, Location etc. 

LyonsBI_BRL_0-1622186589881.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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