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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
83dons
Helper III
Helper III

Identifying duplicates

Hi I have a simple table with two columns and I want to identify all the roles where there are duplicate NI Numbers (ie NI Number > 1). I guess there could be more than 2 duplicates for the same NI Number at some points.

 

ID      NI_Number

0001   JE000001B

0002   SE000001C

0003   JE000001B

0004   FE0000001H

0005   HR000002F

0006   AD000001D

0006   AD000001D

0007  SD000001X

 

This would display only rows where NI Number has duplicates in the original column. I think there may be duplicates in the ID column but that is ok.

 

ID      NI_Number

0001   JE000001B

0003   JE000001B

0006   AD000001D

0006   AD000001D

 

Thanks again.

 

1 ACCEPTED SOLUTION
Demert
Resolver II
Resolver II

Hi @83dons  if you have access to edit these table in Power Query, you have a nice option to only keep duplicates. 

 

Select the column where you want to keep the duplicates from then select keep rows and click on keep duplicates.

Demert_0-1750686256353.pngDemert_1-1750686272203.png

 

View solution in original post

4 REPLIES 4
Demert
Resolver II
Resolver II

Hi @83dons  if you have access to edit these table in Power Query, you have a nice option to only keep duplicates. 

 

Select the column where you want to keep the duplicates from then select keep rows and click on keep duplicates.

Demert_0-1750686256353.pngDemert_1-1750686272203.png

 

Perfect thanks! Very easy!

Ahmedx
Super User
Super User

you need to create a table, pull out the NI_Number column into the rows and write a measure like this

 = DISTICTCOUNT( 'yourtable'[ID])

if the measure shows more than 1 then there is a duplicate
 

@Ahmedx that makes sense but not sure how to do that practically.

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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