Bonjour
let
Source = Excel.CurrentWorkbook(){[Name="t_Courriers"]}[Content],
Etat0 = Table.TransformColumnTypes(Source,{{"SUCURSALLES", type text}, {"MONTANT", Int64.Type}, {"COURRIER", type text}}),
#"Lignes groupées" = Table.Group(Etat0, {"SUCURSALLES"}, {{"COURRIER", each List.Max([COURRIER]), type nullable text}, {"Tabl", each _, type table [SUCURSALLES=nullable text, MONTANT=nullable number, COURRIER=nullable text]}}),
#"Tabl développé" = Table.ExpandTableColumn(#"Lignes groupées", "Tabl", {"MONTANT"}, {"MONTANT"}),
#"Colonnes permutées" = Table.ReorderColumns(#"Tabl développé",{"SUCURSALLES", "MONTANT", "COURRIER"})
in
#"Colonnes permutées"