Bonjour,
Vous pouvez m'aider svp; je n'arrrive pas à trouver ce qui cloche:
let
Source = Table.Combine({Tab_Stock, Requête1}),
#"Lignes triées" = Table.Sort(Source,{{"Attribut", Order.Ascending}, {"Periode", Order.Ascending}}),
#"Index ajouté" = Table.AddIndexColumn(#"Lignes triées", "Index.1", 1, 1, Int64.Type),
#"Colonne conditionnelle ajoutée" = Table.AddColumn(#"Index ajouté", "Personnalisé", each if [Index]=0 then null else -Idex.1[Attribut]{[Index.1]-2})
in
#"Colonne conditionnelle ajoutée"
Merci.