Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 channels (direct, email, paid search etc) and campaigns (1,2,3). My problem is that I want PowerBI to not show me Paid search for campaign 3. So far I am doing it by the advanced search method, but there I would have fill the rows that I WANT TO KEEP. So is there an option on how can I easily unfilter just rows with paid search and campaign 3?
Thank you.
Solved! Go to Solution.
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
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
Thank you and is there an easy way how to filter it? So far I am doing through the advanced filtering options and putting down all the rows I want to keep, which is a bit time consuming.
Select the visual and add the fields for channel and campaign to the filters for the visual. Then select Paid for channel and 3 for campaign in the corresponding filters.
You can use this method for reports pages or the whole report (you will see the options in the filter pane). However, if it is for the whole report, it is best to filter the tables in Power Query instead.
Proud to be a Super User!
Paul on Linkedin.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
79 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
59 | |
59 | |
49 | |
42 |