let
Source = Excel.Workbook(File.Contents(blablaxxxx"), null, true),
Worksheet_Sheet = Source{[Item="Worksheet",Kind="Sheet"]}[Data],
#"En-têtes promus" = Table.PromoteHeaders(Worksheet_Sheet, [PromoteAllScalars=true]),
#"Lignes filtrées" = Table.SelectRows(#"En-têtes promus", each ([Statut] <> "Annulé")),
#"Colonnes renommées" = Table.RenameColumns(#"Lignes filtrées",{{"Date d'échéance", "Date Ech"}, {"Total (TTC)", "Total(TTC)"}}),
#"Type modifié" = Table.TransformColumnTypes(#"Colonnes renommées",{{"Id", Int64.Type}, {"Document", type text}, {"N° de document", type text}, {"Id Opportunité", Int64.Type}, {"Opportunité", type text}, {"Date", type date}, {"Date Ech", type date}, {"Client", type text}, {"Total (HT)", Currency.Type}, {"Total(TTC)", Currency.Type}, {"Total TVA", Currency.Type}, {"Statut", type text}})
in
#"Type modifié"