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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerBIspeed
Frequent Visitor

Remove rows based different columns

Hi,

 

I have a table with a lot off records(rows) which have to removed or filterd from the table based on 3 colums.

Example:

There are two records where column A, B and C are equal, then they have to be removed or filterd out.

Is this possible ?

 

 

1 ACCEPTED SOLUTION
tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @PowerBIspeed ,

 

If you'd like to remove all rows that exist more than once, here another approach:

tomfox_3-1657809035965.png

 

Select all columns you'd like to check for duplicates, right click and click Group By:

tomfox_4-1657809096137.png

 

 

Choose the following settings:

tomfox_5-1657809126898.png

 

 

Then filter for the ones that are lower than 2:

tomfox_6-1657809194814.png

tomfox_7-1657809217635.png

 

 

The result:

tomfox_8-1657809240184.png

 

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

6 REPLIES 6
PowerBIspeed
Frequent Visitor

Sorry, my mistake but I explained it wrong.

I want to remove the record where Column A in record 1 and 2 are equal, Column Bin record 1 and 2 are equal and Column c in record 1 and 2 are equal.  when in both records the all the 3 Columns are Equal remove the records

 

PowerBIspeed_0-1657805208406.png

 

tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @PowerBIspeed ,

 

If you'd like to remove all rows that exist more than once, here another approach:

tomfox_3-1657809035965.png

 

Select all columns you'd like to check for duplicates, right click and click Group By:

tomfox_4-1657809096137.png

 

 

Choose the following settings:

tomfox_5-1657809126898.png

 

 

Then filter for the ones that are lower than 2:

tomfox_6-1657809194814.png

tomfox_7-1657809217635.png

 

 

The result:

tomfox_8-1657809240184.png

 

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Hi Tom,

 

This solution worked for me. Thanks a lot.

 

tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @PowerBIspeed ,

 

Ok, how about this:

tomfox_0-1657808689569.png

 

After:

tomfox_1-1657808715176.png

 

Mark all the column you wish to check for duplicates. Then right click and click on remove duplicates:

tomfox_2-1657808772224.png

 

Note, this approach does onoy remove one of the duplicates

 

Let me know if this solves your issue 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 

 

 

 

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @PowerBIspeed ,

 

In Power Query, you could create an additional column with all your filter requirements. Here an example of filtering all the rows that have the same value in all three columns:

tomfox_0-1657792308560.png

 

Create a new column:

tomfox_2-1657792599076.png

 

 

Filter out all the ones that have 1 in the new column:

tomfox_3-1657792658450.png

 

Done:

tomfox_4-1657792674494.png

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

PC2790
Community Champion
Community Champion

Hey @PowerBIspeed ,

 

See if this thread caters to your requirement.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.