Rebonjour, en fait voilà la formule que je cherchais alors > Text.StartsWith([#"[Structure finale]"], "SL").
Dans une colonne conditionnelle, on ne peut pas mettre de "if" et "and" si je ne me trompe pas , donc il faut connaitre cette formule. Vous savez pourquoi il y a un "#" ?
Merci
if [#"[Lib. Etat]"] = "Payée Cash" and Text.StartsWith([#"[Structure finale]"], "SL")
then "SL"
else if [#"[Lib. Etat]"] = "Payée Virement" and Text.StartsWith([#"[Structure finale]"], "SL")
then "SL"
else if [#"[Lib. Etat]"] = "Payée Virement" and Text.StartsWith([#"[Structure finale]"], "MCR")
then "MCR"
else if [#"[Lib. Etat]"] = "Payée Cash" and Text.StartsWith([#"[Structure finale]"], "MCR")
then "MCR"
else null