Power Query M code
let
Source = YourTable,
RemovedDuplicates = Table.Distinct(Source)
in
RemovedDuplicates
Keeps only one copy of each identical row.
let
Source = YourTable,
RemovedDuplicates = Table.Distinct(Source)
in
RemovedDuplicates
To de-duplicate by specific columns only, use Table.Distinct(Source, {"ColumnA", "ColumnB"}).
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Remove Duplicate Rows.