Forum Discussion
SativagateMTX
Aug 22, 2022Copper Contributor
formule vers langage M
Bonjour J'ai un problème a le code M je ne suis pas doué pour les Expression de langage M ,mais de base le code est sensé faire et remplacé ma formule dans la colonne E Cellule E2 a E40 SI.CON...
Riny_van_Eekelen
Aug 22, 2022Platinum Contributor
Without knowing what exactly you are trying to achieve, perhaps this M-code will help you on your way.
= Table.AddColumn(#"Changed Type", "Custom", each
if Text.StartsWith ([Column1], "sol") then "SOL" else
if Text.StartsWith ([Column1], "PAP") then "PAP" else
if Number.FromText ([Column1]) > 0 then "GARE" else
null
)
The picture below shows the "formula" in action.
- SativagateMTXAug 24, 2022Copper Contributorbonjour Riny_van_Eekelen
Je vous remercie pour cette reponse ,je vais essayé de la mettre en pratique.
cordialement- SativagateMTXAug 24, 2022Copper Contributor