Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Transform By Dividing Based On Another Column Conditionally

Hello there,   Can someone help me on spotting the problem with this script:   = Table.TransformColumns(#"Grouped Rows2", {{"Tenure", each if [AD Account]="Shams, Magdoulin" then _ / 2 else _, ty...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    Correct. Table.TransformColumns only transforms columns individually. You can't cross-reference other columns in the transformation definition.

     

    The easiest method is usually to define a new custom column instead of transforming an existing one since you can reference multiple columns that way.