let
Source = Excel.CurrentWorkbook(){[Name = "Départ"]}[Content],
ColName = Table.ColumnNames(Source),
#"Grouped Rows" = Table.Combine(
Table.Group(
Source,
ColName{0},
{{"Custom",
each let x = Table.RowCount(_) in
Table.RemoveColumns(
Table.FromRows({List.Combine(Table.ToRows(_))},
List.TransformMany({1 .. x}, (y) => ColName, (y, z) => z & " " & (if Text.From(y) = "1" then "" else Text.From(y)))),
List.TransformMany({2 .. x}, (y) => {y}, (y, z) => ColName{0} & " " & Text.From(z)))
}}
)[Custom]
)
in
#"Grouped Rows"