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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.