ID | TYPE | INDEX | ID | TYPE | Index | |
301 | A | 1 | 302 | A | 4 | |
301 | A | 2 | 305 | B | 7 | |
302 | A | 3 | ||||
302 | A | 4 | ||||
303 | B | 5 | ||||
304 | B | 6 | ||||
305 | B | 7 | ||||
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Group = Table.Group(Source, {"TYPE"}, {{"ID", each List.Max([ID]), type number}, {"Index", each List.Max([INDEX]), type number}}),
TSC = Table.SelectColumns(Group,{"ID", "TYPE", "Index"})
in
TSC