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

Counting the number of distinct values against each entry

Hello. I'm trying to visually display the number of services each person in my company is using. My table is something like this:

Name            Service

A                      B

A                      C

A                      D

B                       E

B                       F

 

I think I first have to create a new column which contains a count of the number of unique entries in the Name column but its not giving the right result

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Anonymous 

This measure will give you the distinct count of services

Service Count = DISTINCTCOUNT ( YourTable[Service] )

Then you pull the name from the table and this measure into your matrix to get your count.

ServiceCount.jpg

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

Hello @Anonymous 

This measure will give you the distinct count of services

Service Count = DISTINCTCOUNT ( YourTable[Service] )

Then you pull the name from the table and this measure into your matrix to get your count.

ServiceCount.jpg

Anonymous
Not applicable

If it's a table of 100 names, is there a way of avoiding pulling each name individually?

You just drag the name field into the visual, not the name themselves.  It will bring all the names at once.

Names.jpg

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.