Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

I currently have a bunch of files that are 99% similar, except they have some different data in their columns. The first two rows will always look like this:

1643793273640.png


Unfortunately, the first row messes with the power query, so it returns this:

1643793374777.png


If I remove the first row, my file works such as intended and I can import my data. However, surely there must be some way to get Power Query to automatically delete or ignore the first row (row A1-X1 etc.) when it loads data, right?

I would truly appreciate some insight here! :)

Also moderators (@Fluff @Joe4) if I posted this in the wrong forum, apologies! I would like to kindly ask you to move it to the correct forum in such an instance.

Kind regards,
Jyggalag
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
You need to modify your Transform Sample file query to skip the first row.
 
Upvote 0
Solution
You need to modify your Transform Sample file query to skip the first row.
How do I do that if I may ask? Apologies for the silly question, I just started using Power Query yesterday.

I tried going in here, but it's all greyed out:

1643793898210.png
 
Upvote 0
Wrong query. You want the one two rows above that. When you initially set this up, if you'd removed the top row, it would have applied to all files.
 
Upvote 0
Wrong query. You want the one two rows above that. When you initially set this up, if you'd removed the top row, it would have applied to all files.
Ah okay thank you Rory!

I can remove the files if necessary from the folder?

For now tho it seems like I can't do much in here either though:

1643795553146.png


Do I have to somehow change the formula here or?
 
Upvote 0
If I were you, I'd delete all of that and just start again from the beginning.
 
Upvote 0
If I were you, I'd delete all of that and just start again from the beginning.
How would I do that?

I removed the files from the folder now, but I am not sure on how to reset the folder that I am referring to with my pivot table (without creating the pivot table all over again and inputting a source).

I tried here, but it seems to get me stuck since there are no files in the folder now:

1643796553770.png


Sorry for the confusion!
 
Upvote 0
Put the files back in the folder, then click on the Sample File query and see if it's working.
 
Upvote 0
Put the files back in the folder, then click on the Sample File query and see if it's working.
Thank you so much for your patience Rory :) I tried it, but got this:

1643797829657.png
 
Upvote 0
Select the Source step (in the list on the right), then post a picture of that please.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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