let
A = Table.AddIndexColumn(Excel.CurrentWorkbook(){[Name="Tableau1"]}[Content], "idx"),
B = Table.Combine(Table.Group(A, {"Nom"}, {"x", each Table.AddIndexColumn(_, "N° Occurrence", 1)})[x]),
C = Table.SelectColumns(Table.Sort(B, {"idx"}), List.RemoveItems(Table.ColumnNames(B), {"idx"}))
in C