Bonjour à tous !
Une proposition ?
let
Source = Excel.CurrentWorkbook(){[Name="BASE_2"]}[Content],
GroupBy = Table.Group(Source, {"N°"}, {{"tbl", each _}},0,(x,y)=> if y[#"N°"]=1 then 1 else 0),
Index = Table.AddIndexColumn(GroupBy, "Index", 1, 1),
Préfixe = Table.TransformColumns(Index, {{"Index", each "SAISON " & Text.From(_), type text}}),
SuppCol = Table.RemoveColumns(Préfixe,{"N°"}),
Expand = Table.ExpandTableColumn(SuppCol, "tbl", {"N°", "TITRE"})
in
Expand