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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

How to count one column's values without another column's duplicates affecting it

Hello there! Here are the details about the problem I have:

 

I want to count the number of values in one column, without another column's duplicates affecting it. 

Example: I have a table with multiple columns. The columns that matter most are "No." (detail number) and "Family". I want to count the number of values in the "Family" column without "No. Values" affecting them. Whenever the "No." column has a value count of more than 1 (in this example - 1282370) - it should count as 1. 

The result would be: the SDB count for 1282370 - 1. Duplicates don't count.

PreacherBaby_0-1664882641574.png

 

there are other "detail numbers" that can have the same family. Hence, if the count of one detail for the same family is >1 - it should count as 1.

what would be the DAX expression to get these values?

 

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
How about DISTINCTCOUNT ( 'Table'[Family] )?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.