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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Power query help needed

I have  a sharepoint folder with csv files.  There will be a file uploaded to this folder each day. Filename will have the date prefixed for each file.  The problem is each file have first 10 rows as in different format so i need to remove those rows. Since there is a file for each day, i am looking to see if there is a way to remove first 10 rows from all the files at once.  Can anyone help with transform that i need to use here. Thanks

4 REPLIES 4
Ahmedx
Super User
Super User

to know how to do this watch my video

Table.TransformColumns( #"Removed Columns",{"Data" , (x) => Table.Skip( Table.PromoteHeaders(x),10)})

https://1drv.ms/v/s!AiUZ0Ws7G26Ri3MkkXrudLMxU8tA?e=Rurt2X

Ashish_Mathur
Super User
Super User

Hi,

You will have to use the Table.Skip function in a Custom Column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

In your query add a step : Home tab, click on Remove Rows -> Remove Top Rows then enter 10

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

this will only remove first 10 rows from the first file. I want this to work for all the files in the folder.

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.