Forum Discussion

rsbin's avatar
rsbin
Icon for Community Champion rankCommunity Champion
4 years ago
Solved

Text Does Not Contain

Good Afternoon, Haven't had to use Power Query in a while, but don't understand why I am unable to filter my column [Facility] correctly. I want to include only those rows where the text "TSI" or...
  • Vijay_A_Verma's avatar
    4 years ago

    bracked missing after each. Since you are using one and condition, hence brackets are needed.

    Use this

    = Table.SelectRows(#"Renamed Columns", each (not Text.Contains([Facility],"HUB") and not Text.Contains([Facility],"TSI")))

    Alternatively, you can use an OR condition with not outside'

    = Table.SelectRows(#"Renamed Columns", each not (Text.Contains([Facility],"HUB") or  Text.Contains([Facility],"TSI")))