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
trisa1999
Frequent Visitor

How to get the total count of distinct values from a result table

Hello! I am trying to get the total count of distinct name values from a result table. For example, I have slicers that return results of referring providers for a given time range. I would like to get the number of duplicate provider names from the results. So if a doctor referred 4 times in a specific time frame and another doctor referred 6 times, I would like to show another result table with the amount of times each provider referred. Hope that makes sense.

 

Thanks in advance!

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @trisa1999,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BKirsch12
Resolver II
Resolver II

You can use a card to display the distinct count of providers:

 

Distinct = DISTINCTCOUNT(Provider column])

 

 

If you need to know how many times a provider was listed, you'll want to do a group by.

 

You need to use a calculated table (Select new table and use this DAX):

 

Count = SUMMARIZE( Table with Provider column,Provider column,"Count",Count(Provider column)) 

 

Let me know how that works, thanks.

 

 

Thanks for your response. When using the Summarize DAX expression I receive the following error:

 

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

Here is the expression - DistinctProviderCount = SUMMARIZE(DoctorFacility,DoctorFacility[ListName],"Count",COUNT(DoctorFacility[ListName]))

 

 

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.