79142990

Date: 2024-10-30 22:29:07
Score: 0.5
Natty:
Report link

Standard "Remove Duplicates" removes all but the very first occurrence based on the original ordering.

If you want to keep something else, for example the most recent row (which is pretty typical), you must do some workaround.

Out of all workarounds I've seen, this one by Brent Jones looks pretty good. It's a multi-step process where you do a little trick multiplicating the columns temporarily, creating a new True/False column indicating which rows you want to keep, and then filtering only True.

Brent's article goes step by step including screenshots.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: jrx1301