cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
PreacherBaby
Helper III
Helper III

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 @PreacherBaby 
How about DISTINCTCOUNT ( 'Table'[Family] )?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors