Hi,
I have created a connection using Power Query to a worksheet which is used to populate a pivot table.
Each month I will paste over the data in the worksheet and refresh connection to update the pivot table.
One problem is that the heading of one of columns in the worksheet changes each month to show the date of the latest month-end (formatted as text). For example, in this month's report the 4th column will have the header "31-08-2020" and next month it will be "30-09-2020".
This causes the query to fail when I try to refresh it.
I would want the resulting pivot table to include a field with the name of the 4th column (so "31-08-2020" this month and "30-09-2020" when I refresh it next month).
Is there a way around this other than manually to adjust the column header in the worksheet to be something that doesn't change each month?
Thanks!
I have created a connection using Power Query to a worksheet which is used to populate a pivot table.
Each month I will paste over the data in the worksheet and refresh connection to update the pivot table.
One problem is that the heading of one of columns in the worksheet changes each month to show the date of the latest month-end (formatted as text). For example, in this month's report the 4th column will have the header "31-08-2020" and next month it will be "30-09-2020".
This causes the query to fail when I try to refresh it.
I would want the resulting pivot table to include a field with the name of the 4th column (so "31-08-2020" this month and "30-09-2020" when I refresh it next month).
Is there a way around this other than manually to adjust the column header in the worksheet to be something that doesn't change each month?
Thanks!