Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors