Power Query - Altering columns in a query

MooseWinooski

New Member
Joined
Aug 1, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hey all,

I would like to query a data set from another excel file, add it into the workbook and then manually add a few columns that suit my need...

Before I start doing this is this going to break anything? or if I refresh the data will it get angry with me or erase the columns I made?

M
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Power Query will not complain about the additional columns.
Whether it will overwrite the columns depends on:-
  • Are you doing a Pivot in the query that will expand the number of output columns the query will take up.
  • Will you be modifying the query so that it outputs more columns ?
If yes to either it will overwrite the extra columns.

Also the additional columns can't be used for entering data manually.
Manually entered data is row dependent and a refresh could mean there is something different on that row.
Calculations that are consistently applied to all rows should be fine, and lookups should be fine.
 
Upvote 0
Power Query will not complain about the additional columns.
Whether it will overwrite the columns depends on:-
  • Are you doing a Pivot in the query that will expand the number of output columns the query will take up.
  • Will you be modifying the query so that it outputs more columns ?
If yes to either it will overwrite the extra columns.

Also the additional columns can't be used for entering data manually.
Manually entered data is row dependent and a refresh could mean there is something different on that row.
Calculations that are consistently applied to all rows should be fine, and lookups should be fine.
So for my purposes what I am doing is extracting an org hierarchy from a system that I am repurposing to track some training.

So I would like to at the end of the query table just put a few columns like "Training booked" "Completed" "Notes" "Trainer name"

I am going to include the query in my data model but I dont think I will have any need to run a pivot
 
Upvote 0
I don't think, the normal power query set up will work for you, unless you are using lookups to get that information.

You might get away with it is you have a column you sort on and you can be sure that new records will always add to the bottom.
The issue is if you add details to Row 3 of the query output and the data in Row 3 on the next refresh is now on Row 6, then you entries will appear against the wrong row.
 
Upvote 0

Forum statistics

Threads
1,223,702
Messages
6,173,961
Members
452,539
Latest member
delvey

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