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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
yanzhao_LBS
Helper II
Helper II

how to delete the duplicated row in Power Query

For example I have a table like this

 

yanzhao_LBS_0-1695003943541.png

what i want is record 2 and 4 are totally same ,i want to delete one. is there any function for this?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @yanzhao_LBS 
You should select all your columns (with mouse + CTRL) and then click right << remove duplicates.

Unfortunately, I am out of the limit of images that I can add to discussions, so I recorded my screens you can download the video from the link 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

6 REPLIES 6
Ahmedx
Super User
Super User

yanzhao_LBS
Helper II
Helper II

Thanks it works well.

Glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

and do you know how to highlight (find out) which line is the duplicated one?

Hi again 🙂
You can add a column that can concatenate all the columns and see the id this new column has duplicates 

Power query has great profile tools. please refer to 

https://learn.microsoft.com/en-us/power-query/data-profiling-tools

I have also updated the video with recorded screens.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @yanzhao_LBS 
You should select all your columns (with mouse + CTRL) and then click right << remove duplicates.

Unfortunately, I am out of the limit of images that I can add to discussions, so I recorded my screens you can download the video from the link 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.