Hi,
I am a new user of Power Query and so have a, hopefully, simple question.
I have created a query in the PQ Editor (PQE) that creates a Table in a workbook based on data in a source worksheet in another workbook.
The idea is that each month I will paste the latest month-end data over the data in the source worksheet and then update the query to refresh the Table.
A wrinkle with this is that the last column of the data in the source worksheet has as its header name the month-end date of the report. So last month it was "30-06-2020" and next month it will be "31-07-2020".
This causes a problem because when refreshing the data for 31-07-2020 the query looks for "30-06-2020" as the name for the last column and fails when it doesn't find it
Is there a dynamic way to manage in the PQE the changing header in the last column or is the solution simply manually to adjust the header in the source data?
Thanks!
Bookmarks