Power Query M code
let
Source = YourTable,
Grouped = Table.Group(Source, {"KeyColumn"}, {{"Count", each Table.RowCount(_), Int64.Type}, {"Rows", each _, type table}}),
OnlyDuplicates = Table.SelectRows(Grouped, each [Count] > 1),
Expanded = Table.ExpandTableColumn(OnlyDuplicates, "Rows", Table.ColumnNames(Source))
in
Expanded