Power Query: Sheets Ahead Part 2
13 April 2022
Welcome to our Power Query blog. This week, I continue uploading data from multiple sheets.
I (still) have some simple monthly data:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image1.png/e774d10cbbb9450fc45efbe51abdf434.jpg)
This sheet is for January (once again, apologies for any confusion caused to our US readers), and I have a similar sheet in the same workbook for February:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image2.png/f32e5a15e2cf9c3e4d2d058458ce054d.jpg)
I want to create a query that not only concatenates this data, but will also include the sheets for other months as they appear if I refresh it.
I have created my query in another workbook. Last week, I had encountered a problem:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image3.png/f1140ff857fc3b6f5f97a6a24f4a6fc7.jpg)
The red under the column headings indicates one or more errors – in this instance, this has been caused by the ‘headings’ row for January:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image4.png/72aa864d2854c6fefb1083fba0ab5792.jpg)
I can solve this by using ‘Remove Rows’ from the Home tab – this means that any other sheets added would also be dealt with, as they too would have a ‘headings’ row.
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image5.png/36776d1da4d05b45bb5a5d09375f407c.jpg)
Using this option removes the errors:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image6.png/23912d3b1671861e02bebcd5183f1607.jpg)
I can now sort by date using the arrow in the Date column:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image7.png/6f49c288a0d88a66b427eaf4ece923d6.jpg)
I rename the query Monthly Sales, and I am ready to add a sheet to the first workbook:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image8.png/b9ee28d90e6b5bc92ea4aeafdad51628.jpg)
I ‘Close & Load’ the data since I can't change the original workbook while I am in Power Query. I load the data to a sheet in my current workbook:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image9.png/0485ccbc83bdeec1d741bad442a1ea5f.jpg)
Back in the original workbook, I enter the data for March:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image10.png/daf8c4f0259ce428269c0d3d4badd32b.jpg)
I go back and refresh the Monthly Sales query:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image11.png/22c6daeb82d7d69ac88f878227e04b28.jpg)
The exclamation mark has appeared because I had the workbook it is accessing open. Now I have closed it, I refresh the query using the sheet icon. Watch the number of rows:
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2022/power-query/280/image12.png/a1537847463e660a31158c8032525438.jpg)
The March data has been included. I can now refresh this query to pick up all available sheets.
Come back next time for more ways to use Power Query!