How to add data to an existing Power Query

cmstoren

New Member
Joined
Oct 31, 2024
Messages
11
Office Version
  1. 365
Platform
  1. MacOS
Hey - this seems like it should be very simple to do but I'm still struggling! Each week I get a report as a csv file with has lots of superfluous information and merged cells. I've used power query to sort it out the way I want, but can't seem to find a way to add the next weeks csv file without going through the whole process again. Any help would be greatly appreciated! (I can use either windows or mac as I know the mac has a few less features). - Chloe
 
Why not copy your Mcode from the previous week and paste into the current week.
 
Upvote 0
Thanks for the reply - I can seem to do it when using my pc but I guess it's just operator failure on the mac. I'm happy to just use the pc at the moment :)
 
Upvote 0
Hey - this seems like it should be very simple to do but I'm still struggling! Each week I get a report as a csv file with has lots of superfluous information and merged cells. I've used power query to sort it out the way I want, but can't seem to find a way to add the next weeks csv file without going through the whole process again. Any help would be greatly appreciated! (I can use either windows or mac as I know the mac has a few less features). - Chloe
Turn your query into a function.
Read from folder, and apply the function to each .csv.
But how can a csv, contain "merged cells"? It's a text file format.

You can actually do the basic set-up, starting all over, where you connect to the folder, use the first file as sample and combine the data.
PQ will create a sample query, a parameter and a function based on the sample query.
Update the sample query with the code you have.
Should get the job done.

When you do not want to redo the previous file, the alternative is to apply the same, but use a filter to only load the latest csv. Then save as file a, b, c, ... as days go by. Basically you create file x as your template.
 
Upvote 0

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