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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
mosarahit48
Frequent Visitor

Removing Unwanted Rows Dynamically

How to remove unequal numbers of "Top" & "Bottom" rows (together) dynamically from multiple files in Power Query?

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Is there a value in a column that is only in the top/bottom rows you want to skip. If so, you can just do a filter. You can also use Table.Skip, which can be used with a condition to dynamically skip rows You would do this in the #"Transform sample file" query (or a custom function) so that it gets applied dynamically to each file.

 

Table.Skip - PowerQuery M | Microsoft Learn

 

Pat

 

Microsoft Employee

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Is there a value in a column that is only in the top/bottom rows you want to skip. If so, you can just do a filter. You can also use Table.Skip, which can be used with a condition to dynamically skip rows You would do this in the #"Transform sample file" query (or a custom function) so that it gets applied dynamically to each file.

 

Table.Skip - PowerQuery M | Microsoft Learn

 

Pat

 

Microsoft Employee

Thanks for the solution, it works 😀

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.