Forum Discussion
ghdunn
Helper III
7 years agoexpression.evaluate - import a snippet .not the whole script
Hi I have a dataset transformation that is a stable/unchanging set of query steps except for a last conditional column step which is driven by a reasonably volatile set of business rules that I w...
- 7 years ago
Add Let expression and see code below.
let #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if [country] = "USA" then 1 else if [country] = "UK" then 2 else 3) in #"Added Conditional Column"
Expression.Evaluate(Source2, Record.Combine({[#"Changed Type"=#"Changed Type"], #shared})) - 7 years ago
v-chuncz-msft
Community Support
7 years agoghdunn
Helper III
7 years agoGreat job...thanks