Power Query - Expression.Error Column wasn't found

borkybork

New Member
Joined
Aug 5, 2022
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi! I've created a query that is dynamically linked to pull data from the most current version of the source file. I don't need to show rows 1 - 3, but I get an error that the column can't be found when I promote row 4 to headers. I removed top 2 rows, then used first row as headers. Not sure where I went wrong or what's causing the error. Could someone please help me fix this? Thank you in advance!

Source File: Data Sample.xlsx
1699247378604.png


Query let me update to the new source file Data Sample - Copy if I didn't make row 4 my headers.
1699247734953.png


Query gives me an error after cleaning up the report in PQ.
1699247236578.png
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Carefully checking the column name and ensuring it matches the actual data source, you should be able to resolve the "Column wasn't found" error in Power Query. I
 
Upvote 0
Did you at some point promote the first row to headers? This will often mess with the column names in unexpected ways. You may also be able to solve it by removing unnecessary "Change type" actions.
 
Upvote 0

Forum statistics

Threads
1,216,500
Messages
6,131,016
Members
449,615
Latest member
Nic0la

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