ImkeF
Community Champion
6 years agoStatus:
New
Exception error through environment in Expression.Evaluate
Expression.Evaluate throws an exception error when the reference to the current row is used together with native function, like [Text.Contains = Text.Contains, _=_]
let
Conditions = let
...
v-chuncz-msft
Community Support
6 years ago
You may change the custom column formula as follows.
let
r = _
in
List.First(
List.Transform(
ListOfConditions,
(l) => Expression.Evaluate(
" if " & l{1} & " then """ & l{3} & """ else null",
[Text.Contains = Text.Contains, _=r]
)
)
)