0
I have copies of a standard-formatted data table in multiple sheets in my Excel 2013 workbook that I am using Power Query add-in to pull data from and compile into a larger table. Each summary table has 5 columns of data. When hitting ‘refresh’, Power Query is set up to pull data from all 5 columns. Initially this worked as expected with the sheets I made. More recently, when adding new sheets, the queried data from the middle column is always blank in the larger table. When I look into the power query editor, these values are returned as null, even though there are numbers entered into this middle column. The problem seemed to have coincided with when I started generating the sheets using a recorded macro. To test if the problem was in the macro, I tried making a new sheet without the macro and the same outcome still occurred. I changed the cell positioning of the tables to check if there was something weird with the formatting of a column, and the problem still happened.
The steps I have taken that lead to this problem:
- Created a 5 x 8 table with column headers and populated multiple sheets with copies of it.
- In Power Query tab, I got external data using ‘From other sources’ and selecting ‘blank query’.
- Entered ‘=Excel.CurrentWorkbook()’ into editor bar.
- After clicking on double arrow icon in green column, I selected all the columns from the tables and unchecked ‘Use original column name as prefix’.
- On ‘Name’ column arrow button, went to ‘text filters’ and clicked ‘does not equal’.
- I selected ‘Query’ in drop down list.
- I Clicked ‘Close and Load’ to produce the summary table.
I’ve searched for similar problems using tags [power query][Microsoft-excel 2013] and nothing has come up.
I think you are correct. I tried correcting the Excel data but it wasn't clear where the variation was occurring. I ended up re-doing the query making sure to keep the column names consistent and the problem has not come back. – KeithK – 2019-10-17T12:20:21.810