Share via

Query looking at a variable data source where the number of columns change

Jake Singh 1 Reputation point
2022-01-27T11:09:06.787+00:00

Basically the number of columns in my data source for which my query works off increases by 1 column every day.

e.g today there are 2259 columns and tomorrow there will be 2260 columns (in my data source)

When I update my data source and refresh the query it creates an error where the last column cannot be found (see below) so I have to manually tell the query that there are 2260 columns in my data source when I'm sure there is a way this can be done automatically.
168966-error.png

Also, there are some sheets where I only need the first 100 columns for example. Does anyone know a way where I can make the query display only the first 100 columns and ignore the remaining columns, even if the number of columns increases by 1 each subsequent day?

Any help would be greatly appreciated :)

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. Ehren (MSFT) 1,786 Reputation points Microsoft Employee
    2022-02-18T20:52:03.67+00:00

    Power Query is no longer supported here on Q&A. Please post your question over on https://aka.ms/PQCommunity instead.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.