Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

[Advanced Editor] Conditional Concatenate

Hi All,   I'm having trouble with what's supposed to be a simple piece of M-script. I want to make a concatenate column. Here is what my data looks like: Division   Facility     Item A           ...
  • Mariusz's avatar
    6 years ago

    Hi Anonymous 

     

    Try the below script

     #"Added Custom" = Table.AddColumn( Source, "Custom", each [Division] & ( if [Facility] = "-" then "" else [Facility] ) & [Item], type text )
    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    LinkedIn