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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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?

2 ACCEPTED SOLUTIONS
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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.