Forum Discussion

onedayover's avatar
onedayover
Icon for Helper III rankHelper III
4 years ago
Solved

Clear all cells within a table that contain a particular string

Hi All Would anyone know how I could change the code below to clear all cells within a table that have that same string and not just a single column? Example... = Table.ReplaceValue(#"Extract Inst...
  • jbwtp's avatar
    jbwtp
    4 years ago

    Actually, this is probably more correct and uniform to the template:

    Table.ReplaceValue(#"Extract Instance", "claimed", "", (x, y, z)=> if Text.Contains(x, y) then z else x, Table.ColumnNames(#"Extract Instance"))

    Cheers,

    John