Forum Discussion
Anonymous
4 years agoNot applicable
Table filtering options - delete rows with specific text
Hello, I was wondering if there is some easy way how to filter table in the advanced filtering mode for text, when I don´t want to keep some rows? I have table with different combinations of channe...
- Anonymous4 years ago
Hi Anonymous ,
You can deal with it in Power Query Editor:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSjYwVNJRSsksSk0uATIMlWJ1QIJGQHZqbmJmDpKYMZBdkJiZolCcmliUnIEkY4JshBFU0BTJCJiYGYYRMBlzZCOMoYIWSEbAxCwxjADKxAIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [customer = _t, #"combinations of channels" = _t, campaigns = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"customer", type text}, {"combinations of channels", type text}, {"campaigns", Int64.Type}}), #"FilteredRows" = Table.SelectRows(#"Changed Type", each not(Text.Contains([combinations of channels], "paid search") and [campaigns] = 3)) in #"FilteredRows"In addition, you can refer the solution in the following links to get it.
"Does Not Contain" text filter filters too much
Power Query Filter Rows by NOT Contains Criteria - Single Formula Solution
Select Rows if text Contains (Value of a list)
Best Regards
Anonymous
4 years agoNot applicable
Hi Anonymous ,
You can deal with it in Power Query Editor:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSjYwVNJRSsksSk0uATIMlWJ1QIJGQHZqbmJmDpKYMZBdkJiZolCcmliUnIEkY4JshBFU0BTJCJiYGYYRMBlzZCOMoYIWSEbAxCwxjADKxAIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [customer = _t, #"combinations of channels" = _t, campaigns = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"customer", type text}, {"combinations of channels", type text}, {"campaigns", Int64.Type}}),
#"FilteredRows" = Table.SelectRows(#"Changed Type", each not(Text.Contains([combinations of channels], "paid search") and [campaigns] = 3))
in
#"FilteredRows"
In addition, you can refer the solution in the following links to get it.
"Does Not Contain" text filter filters too much
Power Query Filter Rows by NOT Contains Criteria - Single Formula Solution
Select Rows if text Contains (Value of a list)
Best Regards