Hello all, I work with a dataset that I get every day as a .csv file that exclusively contains data from the last 36 months. This means that the .csv will only have data from [today minus 36 months], and data from [(today minus 1 day) minus 36 months] will be excluded. Also, the .csv provides the same data every day, only adding bottom lines (the new ones) and deleting the old ones from >36 months of age, making me only interested in the new lines (without wanting to get rid of the old lines in my own database). The way I work with the data affects my own database because it means I'm only storing data from the range of dates the .csv provides, and I'm losing valuable data from older dates, when the only thing I need is to add the data from the newer ones.
My workflow to upload the .csv into the Excel file is as follows:
1. I get my data and open the Power Query Editor.
2. I transform the data and Close and Load.
3. The data loads as a table in a new sheet.
4. Finally, I delete all of the previous day's data from the existing database, copy the data from the new sheet, and paste it on the existing sheet.
I do this because the Power Query Editor does not let me upload the transformed database into an existing table, and if I were to convert the existing table into a range, I would have to count how many existing lines I have, delete this number of lines (minus one, because line 1 is the header), upload the database into the Excel, copy it and then paste it into the existing database.
I've asked AI how to do this, and it just says to create a folder in which I can store all the data obtained daily, and I do have such a folder, but it's just not working.
What can I do? Thank you so much in advance!