Get Data > Combine Queries > APPEND Issue

BrettOlbrys1

Board Regular
Joined
May 1, 2018
Messages
139
Office Version
  1. 365
Platform
  1. Windows
I have two tables that I want to combine into one table. Each table resides on its own sheet and the combined table will be on a 3rd sheet. I created a "connection only" to each of the two tables and on the third sheet, I am running the "Get Data > Combine Queries > Append" function.

The third table is created and everything looks good, but when I check the dates of the data that were brought into the third table, it stops at 12/24/22, even though one table has data through 12/27/22.

Why is the third table not pulling in all of the data?

Thanks

Brett
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hard to answer your question without seeing the data. Both the two tables that are joined and the result. Suggest you share sample that is representative of this situation with XL2BB. No pictures please. Otherwise, post them to a third party site, ie. Dropbox.Net, Box.Net, etc.
 
Upvote 0
Hard to answer your question without seeing the data. Both the two tables that are joined and the result. Suggest you share sample that is representative of this situation with XL2BB. No pictures please. Otherwise, post them to a third party site, ie. Dropbox.Net, Box.Net, e

Hard to answer your question without seeing the data. Both the two tables that are joined and the result. Suggest you share sample that is representative of this situation with XL2BB. No pictures please. Otherwise, post them to a third party site, ie. Dropbox.Net, Box.Net, etc.
When you say a sample of the data, you mean (for example) all of December because 2022 is over 30,000 lines in total, but December should give you enough of a sample, right?
 
Upvote 0
I have two tables that I want to combine into one table. Each table resides on its own sheet and the combined table will be on a 3rd sheet. I created a "connection only" to each of the two tables and on the third sheet, I am running the "Get Data > Combine Queries > Append" function.

The third table is created and everything looks good, but when I check the dates of the data that were brought into the third table, it stops at 12/24/22, even though one table has data through 12/27/22.

Why is the third table not pulling in all of the data?

Thanks

Brett
What you describe is very strange. Typically in an Append if a column exists in the second table that doesn't exist in the first table, a new column will be created and have null values for all the rows of the first table. Otherwise I can't imagine why data would be missing from either table. Can you post the Append's query?
 
Upvote 0
It's probably a better start to post the M code for all three queries.
 
Upvote 0
It's probably a better start to post the M code for all three queries
I've only used this functionality a handful of times, and don't know anything about the code itself. Where do I find the code for you to review?
 
Upvote 0
In the PQ editor, on the View tab, click the Advanced editor button and that will show you the M code for the currently selected query.

1672322808450.png
 
Upvote 0
Solution
In the PQ editor, on the View tab, click the Advanced editor button and that will show you the M code for the currently selected query.

View attachment 81718
Actually, the problem is solved. By pointing out to me how to see the query code, I noticed one of the tables was pointing to an older source file. So when I deleted these queries to ensure I was using the correct file path, everything pulls in now.
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,767
Members
452,668
Latest member
mrider123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top