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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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 III
Resolver III

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 III
Resolver III

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.