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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Distinct Count of Individuals using Date of Birth as a criteria

Hi!
I need a distinct count of individuals in a dataset, but would like to use the individuals date of birth as criteria since there will be people in our list with the same name but a different date of birth. So essentially a distinct count using the individuals name AND date of birth to determine whether it is truly a unique individual. Any suggestions?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,
@bhanu_gautam good reply! 
Here is another way to achieve this. 

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1708419825127.png
1.Open power query and right click the table and choose Duplicate, in table(2), group by columns

vheqmsft_1-1708420082431.png

vheqmsft_2-1708420131365.png

2.Close and apply, create a meure

DISTINCT COUNT BY NAME AND BIRTH = COUNT('Table (2)'[Count])

3.Final output

vheqmsft_3-1708420320554.png

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 



View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,
@bhanu_gautam good reply! 
Here is another way to achieve this. 

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1708419825127.png
1.Open power query and right click the table and choose Duplicate, in table(2), group by columns

vheqmsft_1-1708420082431.png

vheqmsft_2-1708420131365.png

2.Close and apply, create a meure

DISTINCT COUNT BY NAME AND BIRTH = COUNT('Table (2)'[Count])

3.Final output

vheqmsft_3-1708420320554.png

 

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 



Anonymous
Not applicable

Hi @Anonymous , thank you - this is helpful!! If I think wanted to further narrow things down by another variable (so first getting a distinct count based on age/dob, then taking that first distinct list and narrowing down with street address), would that be possible? Or can I only use one metric?

 

 

Thanks!

Anonymous
Not applicable

Hi @Anonymous ,
Thank you for your reply, if you want to limit the scope of the search by another indicator, you can do so by adding another column in the first step. Of course, if you want to go for limiting in the altered table (i.e. Table(2) above), you can also do it via distinctcount.

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

bhanu_gautam
Super User
Super User

@Anonymous , You can create one calculated column concatenating DOB and name using below method

 

UniqueIdentifier = CONCATENATE([Name], "-", FORMAT([DateOfBirth], "YYYY-MM-DD"))

 

And from this column you can create a measure for Distinct value

 

UniqueIndividualsCount = DISTINCTCOUNT('YourTableName'[UniqueIdentifier])

 

Please accept as solution and give kudos if it helps




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors