Forum Discussion

wcoetsee's avatar
wcoetsee
New Member
4 years ago
Solved

Conditional replace value - No syntax error

Hi all, I am trying to replace the value in [OriginalPathkey.4] with the number 805 if the value in [AssetType] is equal to CASHADJ but it is not working. I have tried changing the Replacer.Replac...
  • Anonymous's avatar
    Anonymous
    4 years ago

    It would be easier to make a custom column like:

     

    Table.AddColumn(#"Changed Type1", "NewValue" each if [AssetType] = "CASHADJ" then 805 else [OriginalPathKey.4], Int64.Type)

     

    --Nate