cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guyatisk
Frequent Visitor

Delete rows based on content of field

In power query, is there a way to remove rows if a certain string is contained in a field?  So if "abc" or "xyz" exist in a field named "Charge", I do not want that ending up in the dataset.  Is there a way to filter/remove those rows?  Thanks for the information

1 ACCEPTED SOLUTION
guyatisk
Frequent Visitor

Found it - 

Table.SelectRows(#"Added custom 3", each not Text.Contains([Charge], "ABC") or [Charge] <> "XYZ"))
 
I will keep this here for anyone who might need it

View solution in original post

1 REPLY 1
guyatisk
Frequent Visitor

Found it - 

Table.SelectRows(#"Added custom 3", each not Text.Contains([Charge], "ABC") or [Charge] <> "XYZ"))
 
I will keep this here for anyone who might need it

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors
Top Kudoed Authors