I've got a power query that returns a dynamic number of columns.
If I step through the following steps.
Refresh the query which generates a table with 13 columns
Refresh the query which generates a table with 8 columns
I find that the table generated in Excel has the 8 columns I expect, plus 5 entirely blank columns left over from the first refresh. I have tried a number of steps including changing the connection settings and the table properties. If possible I'd like to avoid VBA.
Does anyone have any suggestions?
EDIT: This behaviour can be replicated by adding additional columns on any query, I believe, and then pressing refresh. In my scenario they are just leftover from the query previously returning more columns.