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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
GES_1609
New Member

Query editor: Remove duplicates is removing non-duplicates

Hello

 

I am trying to remove duplicate rows based on one specific column and it's set of values. However, when i use the remove duplicates tool, it removes more rows than there are duplicates.

 

When i try the keep duplicates function, it only keeps those rows that are duplicated based on the specific column I have highlighted. However, when I try remove duplicates, it removes far more rows.

 

I have extracted to excel and excel correctly removes the duplicates, so I am not sure what the problem is?

4 REPLIES 4
saud968
Super User
Super User

If the column is in text format, I recommend choosing Add custom column using "Text. Proper" and then the column name. This should help fix the issue

saud968_0-1728636427158.png

saud968_1-1728636476870.png

 



Best Regards

Saud Ansari

If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

RadkaProefo
Regular Visitor

Hello,

I have the same issue, did you fine some solution?

amitchandak
Super User
Super User

@GES_1609 , IF you want to remove duplicate rows .Then select all columns or do not select anything and then do it.

 

Or select a set of columns, based on which you want to delete duplicates

 

Power Query Table.Distinct (Remove Duplicates)- https://youtu.be/DlpWgJuytuM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I have selected a single column to base my duplicates. I have even tried including other columns to help but I am still having the above issue

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors