Adding column to original data, PQ

Tigerexcel

Active Member
Joined
Mar 6, 2020
Messages
493
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I thought this would be easy but I haven't been able to do this yet. If you have a table which was used to produce a query and then you add a column to the original table, this could be something like an extra month, how do you get the query to update with the new column. I thought that refresh would be sufficient but it doesn't work. The original table remains the same and I can't change the dimensions to include the new column.

Ultimately it would be nice to make the original table dynamic so that any new rows/columns would be reflected in the new query, how would this be done?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
use XL2BB to post source table
post your M with code tags
describe what you want to do
I haven't had much success with XL2BB but I'll try and download it again.
I've just found that if I go into Table Design I can extend the table and load it again, but there must be a more seamless way of the Query adjusting for a change in table dimension be it row or column addition.
 
Upvote 0
you can do that with excel file,
post a link to the shared excel file with source table, expected result, using onedrive, googledrive, dropbox or any similar service

it all depends on how your code works
 
Upvote 0

Forum statistics

Threads
1,223,788
Messages
6,174,570
Members
452,573
Latest member
Cpiet

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