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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Identify duplicates

Hello

 

I have a table which is a list of rowid, account numbers and dates of births.  I want to identify rowid where there are duplicate account number and date of birth.  For example in the data shown below Account number 9987 has 3 different date of births so that is OK but Account number 9960 has same date of births and needs to be flagged

 

1-5L26998706/02/1958 00:00:00
1-5L26998701/01/1900 00:00:00
1-5L26998724/03/1956 00:00:00
1-5L1S996004/09/1974
1-5L1S996004/09/1974 00:00:00
   
   
   
   
   

 

thanks in advance

 

Jo

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You can do this in power query:

Groupby Birthdate and Account

with columns for CountRows and All Rows

Groupby PQ.png

 

Expand the all rows

add a conditional column using the countrows:

Conditional Column PQ.png

then just some cleaning up and setting data types:

Final Table.png

View solution in original post

1 REPLY 1
Anonymous
Not applicable

You can do this in power query:

Groupby Birthdate and Account

with columns for CountRows and All Rows

Groupby PQ.png

 

Expand the all rows

add a conditional column using the countrows:

Conditional Column PQ.png

then just some cleaning up and setting data types:

Final Table.png

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.