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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
tywoodworth
Regular Visitor

Power Query Editing (Filtering using Table.SelectRows)

Hi All,

 

I'm working on table that I need to filter using the below command. 

 

= Table.SelectRows(#"Rename Value and Billing Date", each ([BillT] = "IV" or [BillT] = "ZFR"))

 

I also need to pull in data that contains the letter string "EH" in another column titled "Part Number" (changed from being titled "Material"). This is data that is filtered out by using the above command. I've left a sample below. Any ideas?

 

Data I need after using the command above:

Part Number (Changed from "Material")BillT
123456ZFR
587956IV
164613IV
987646ZFR

 

Data I need to pull in with the text "EH" in the part number

Part Number (Changed from "Material")BillT
PEH1556461ZF2
PEH4154666ZF2
EH12164613ZF2
EH51987646ZF2

 

*Note*

I cannot include all rows with "ZF2" in the BillT column.

 

Thanks All.

1 ACCEPTED SOLUTION
tywoodworth
Regular Visitor

Hi @vojtechsima ,

 

Thank you for the help I was able to figure out after seeing your response. With a few modifications I got it done. Here is the final formula I used. I actually needed tthe or function for each of these filters. Thanks for the help!

 

= Table.SelectRows(#"Changed Type", each Text.Contains([Material], "EH") or [BillT] = "IV" or [BillT] = "ZFR")

 

 

 

 

 

View solution in original post

2 REPLIES 2
tywoodworth
Regular Visitor

Hi @vojtechsima ,

 

Thank you for the help I was able to figure out after seeing your response. With a few modifications I got it done. Here is the final formula I used. I actually needed tthe or function for each of these filters. Thanks for the help!

 

= Table.SelectRows(#"Changed Type", each Text.Contains([Material], "EH") or [BillT] = "IV" or [BillT] = "ZFR")

 

 

 

 

 

vojtechsima
Super User
Super User

Hi, @tywoodworth ,
try modifying your code like this:

= Table.SelectRows(#"Rename Value and Billing Date", each ([BillT] = "IV" or [BillT] = "ZFR") and Text.Contains([#"Part Number"" (changed from being titled ""Material"")"], "EH"))

 






Any kudos or recognition appreciated. To learn more on the topic, check out my blog and follow me on LinkedIn.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.