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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
garye
New Member

Removing Duplicates Based on Another Column

Hello,

 

I am trying to remove unnecessary rows in my data that are essentially incorrect now because there is a more updated row in there and it skews the numbers I am trying to analyze.

 

I have many columns in my data (which I need to keep), but essentially I am trying to remove the rows if the ACCOUNT_ID is the same but there is a 0 AND a 1 for the Funded column. Many ACCOUNT_ID will only have a 0, and I want to keep those, but if there are multiple rows for the same ACCOUNT_ID and the Funded column is a 1 and a 0 then I want to just keep the 1.

Rows 1 and 2 in the picture below are a good example of me just wanting to keep row 2 and delete row 1.

PBI Help.PNG

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the attached file below.

I tried to create a sample pbix file like below, and one of ways to achieve this is to process in Power Query Editor.

In the sample pbix file, all steps are in the Test load query.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

Please check the attached file below.

I tried to create a sample pbix file like below, and one of ways to achieve this is to process in Power Query Editor.

In the sample pbix file, all steps are in the Test load query.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

This worked, thank you!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.