cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guyatisk
Helper I
Helper I

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
Helper I
Helper I

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
Helper I
Helper I

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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Kudoed Authors