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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.