Update existing table with next month's data

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to set up the following using Power Query:
An Excel file that reads data from a CSV file, adds to an existing table and outputs all unique dates

Every month a new CSV file with data is generated which needs to be added to existing data
I have created a query that reads data from a CSV file and loads to connection only
I know how to append this table to an 'existing table' and remove duplicate dates
I wish to connect the updated table (with new data) to a worksheet (eventually it'll be to pivot tables)

Final output
Dashboard containing pivot charts and calculated metrics

Data file:
2,031 columns( this will be reduced*)
Max rows: 33 [2 header rows + 31 days in a month; I have a query step to remove row 2 as it is not needed]
For now, yes Excel is being used to hold all data for all months

For the first read of data, I do not have a 'current' table to add data to.

It seems like there are two cases: Initial data read and Subsequent data reads, how do I set this up?

This seems like a common situation, but I've not been able to successfully search for a solution.
Any ideas please?

TIA,
Jack

* Separately I'm using Table.Buffer() but the data refresh from CSV into Excel is very slow when I test with a different CSV file. This is a separate, though, related question if answer can include suggestions to speed up data reads, that would also be appreciated.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Because I was unaware of it? lol thanks Sandy666 :)
PS Anything on the slowness? Have tried table.buffer but little effect :( Still discovering Power Query and how to use it, but it's not fast with data loads and transformations. The previous problem I posted about, I ended up doing it all in VBA, was much faster.
 
Upvote 0

Forum statistics

Threads
1,223,789
Messages
6,174,576
Members
452,573
Latest member
Cpiet

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