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
WBarberena
Frequent Visitor

Table.Skip won't work with Text.Contains?

Greetings,

 

I hope there is an easy solution I am missing, but here is my quandry:

 

PQ.pngTable.Skip(Source, each [Column1] <> "UNIT:10917") will remove records before row 7 and this is what I want.  The table needs to start at the UNIT record and include all subsequent records.   The problem is in the future the source will eventually yield different unit numbers and the query will break.  Also, the UNIT record may not always be in the same row, so I need the solution to be dynamic.

 

For some reason Table.Skip(Source, each Text.Contains([Column1], "UNIT:")) doesn't work.  The step actually does nothing to the query and does not yield an error.  Am I missing syntax?

 

I know extracting the text range to a new column and using that one will work, but I want to see if I can do this in one step.  I also know the syntax above will work with Table.SelectRows but that will remove all other rows and I just need to skip down to the designated one.

 

Thank you in advance.

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

HI @WBarberena 

I believe you need to negate the condition:

Table.Skip(Source, each not Text.Contains([Column1], "UNIT:"))

From the Table.Skip documentation:

"the rows that meet the condition will be skipped until a row does not meet the condition."

 

Does that work as intended?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

HI @WBarberena 

I believe you need to negate the condition:

Table.Skip(Source, each not Text.Contains([Column1], "UNIT:"))

From the Table.Skip documentation:

"the rows that meet the condition will be skipped until a row does not meet the condition."

 

Does that work as intended?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

And there is the embarrassingly simple answer I needed.  Thank you @OwenAuger!

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.