Forum Discussion

JOSELUISMTZRMZ1's avatar
4 years ago
Solved

How to Replace in PQ without indicating Columns

Hello Everyone   My table has a structure like   A1 B1 C1 D1 1 Value1 OK OK 2 OK OK Value3 3t OK Value2 OK   The thing is that the name columns cames from a Transpose...
  • wdx223_Daniel's avatar
    4 years ago

    NewStep=Table.ReplaceValue(PreviousStepName,"Value","No",(x,y,z)=>if Text.Contains(x,y) then z else x,Table.ColumnNames(PreviousStepName))