PowerQuery - Remove Rows with Identical Column Data

gruntz13

New Member
Joined
Jan 11, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

New to the forum. Have an issue I just can't seem to find a fix.

I'm trying to combine 3 identical lists to find all possible permutations. Easy enough, I combine the tables using PowerQuery. Where I get hung up is that if a value is used in one column, it cannot be used in either of the other two. Example screenshot below. The value Headline1 is eligible to appear in any of the three columns, however, if it appears in one it cannot be in either of the other two.

Is there a way that I can easily delete values like this?

Happy to provide more detail if needed. Appreciate any help.


:
1641928508471.png
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Welcome to the board!

I can come up with a couple of ways to do this. With just three columns to compare I'd go with a helper column with a something like
Power Query:
=[Column1]<>[Column.1.1] and [Column1]<>[Column.1.2] and [Column1.1]<>[Column.1.2]
 
Upvote 0
create a Custom Column
Power Query:
if([Column1]=[Column1.1] or [Column1]=[Column1.2] or [Column1.1]=[Column1.2]) then 1 else 0
Then filter on the custom column to delete any 1's
Then delete the custom column
 
Upvote 0
Solution
another way

Power Query:
= Table.SelectRows(YourTableName, each [Column1]<>[Column.1.1] and [Column1]<>[Column.1.2] and [Column1.1]<>[Column.1.2])
 
Upvote 0
thank you all for the solutions. This is exactly what I was trying to do.
 
Upvote 0

Forum statistics

Threads
1,223,677
Messages
6,173,798
Members
452,535
Latest member
berdex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top