Forum

Adding data to a ta...
 
Notifications
Clear all

Adding data to a table that is not a query from a power query table

11 Posts
2 Users
0 Reactions
147 Views
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

Say I have table that is not a power query table just a stand alone table. Can I add data to it without deleting anything on it from a power query table? If so, how do I do it?

 
Posted : 15/03/2024 11:58 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Could you please elaborate on what exactly you want to achieve? Upload a file with an example, perhaps.

 
Posted : 16/03/2024 9:24 am
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

Sure. Please see attached. I want to add anything new that comes in on the first worksheet, on to the second without deleting or duplicating anything on to the second worksheet.

 
Posted : 16/03/2024 10:24 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Don't think you can do that as there is no way that I know of that can combine a regular Excel table with a PQ table. You need to connect PQ to the "regular table" as well and do a Merge and an Append. See if you can follow what I did in the attached file and come back her if you need more help.

 
Posted : 16/03/2024 11:17 am
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

This is exactly what I want. I just have one question. See attached. Where is that query at? That's the only thing I don't follow. that seems to be the key to everything. and that's precisely what I don't understand. can you please explain? thanks!

 

question.jpg

 
Posted : 19/03/2024 2:01 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Perhaps difficult to explain, but you have to connect to both tables (Source and Source2). Then merge them (left anti join) to find the rows that are new. It creates a column with some tables. This just indicates that these are the new rows. Now you can remove this extra column and append the rows to the table that you call "table that is nit a query".

Not sure if I made myself clear. If not, come back here and I'll try again.

 
Posted : 19/03/2024 3:55 pm
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

Its like #"Buffered" right?

 
Posted : 20/03/2024 8:16 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Don't understand what you mean by Its like #"Buffered".

 
Posted : 20/03/2024 8:23 am
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

https://learn.microsoft.com/en-us/powerquery-m/table-buffer

 
Posted : 20/03/2024 1:19 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Still not sure what you mean. I didn't buffer a table, though connected to two tables in one query.

 
Posted : 21/03/2024 2:00 am
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

Thanks so much for your help.  

 
Posted : 21/03/2024 8:33 am
Share: