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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.