Power Query .csv top lines remove from each file

srehman

Board Regular
Joined
Jan 4, 2020
Messages
210
Office Version
  1. 2016
Platform
  1. Windows
I need to extract multiple csv file by Power query , but i don't need top 6 lines from each csv file. I need only column header and respective data which start from line 7.

I am using following functions but rest of data showing as an error

Csv.Document([Content])
Table.PromoteHeaders([Custom])





1620100875544.png
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try this:

In the left pane of your Power Query editor, you should have an item that says "Transform Sample File".

Select that and then go Home > Remove Rows > Remove Top Rows > enter a number of rows - 6 in this case.

Go back to the Main Query under Other Queries before promoting the header.


1620105857708.png
 
Upvote 0
Try this:

In the left pane of your Power Query editor, you should have an item that says "Transform Sample File".

Select that and then go Home > Remove Rows > Remove Top Rows > enter a number of rows - 6 in this case.

Go back to the Main Query under Other Queries before promoting the header.


View attachment 38026
="10000182" some columns data with ="" i can replace value but why is showing like that
 
Upvote 0
="10000182" some columns data with ="" i can replace value but why is showing like that

1620106440049.png
 
Upvote 0
You might need to log this as a separate query and if you provide the link I can have a look.

Step 1 is to see if you can figure out which of you csv files is causing this (or at least one of them), then open it in Notepad and try a Find for the = sign.
If its in the csv file then Power Query will bring it in the way it is and you need to address it at the source (creation of csv file stage)

If you can't work it out from that then we need some sample data that is causing the problem to work with.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,054
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top