Power Query

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
132
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
I need to change a column on the final output of the Power Query. The Power Query combines two different spreadsheets into one spreadsheet. The owner of the spreadsheets added one column on one of the spreadsheets. Now, when the Power Query run, it pulls the wrong column on the combine spreadsheet. I would like to change the column back to the correct column. I'm having a difficult time trying to change the column back to the correct column. I am not able to see all of the columns available on the spreadsheet and I'm not sure how to make the simple column change.

I'm new to Power Query but I am able to navigate some in the Edit Mode.

Thanks for any help you can give...
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
It depends on the data model, and I can't say anything without seeing the merged data tables. However, if you analyze the steps in the Power Query editor, you might see the step (depending on the method used to generate the result) that columns are selected and include the new column.

Another approach could be to copy & paste the M code from the Power Query Advanced Editor and see if we can figure it out from the existing code.

1679488036041.png
 
Upvote 0
It depends on the data model, and I can't say anything without seeing the merged data tables. However, if you analyze the steps in the Power Query editor, you might see the step (depending on the method used to generate the result) that columns are selected and include the new column.

Another approach could be to copy & paste the M code from the Power Query Advanced Editor and see if we can figure it out from the existing code.

View attachment 88125
Another issue that I am having is that one column is not returning all of the data. I have about 38,000 rows in the file. One column returns some of the data but it is not returning all of the data. It is strange, but I can't figure out why it only returns some of the data in that one column. Not sure what I need to send to see if you could point me in the right direction.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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