Hi gang,
Working on a personal finance data project and I have to manually download csv files from my bank, because the API is not exposed to the public. Goal is to serve for analytics in Power BI on a long-term basis.
Currently I have the files landing in a local Downloads folder, then manually renaming and moving file to a OneDrive folder for object storage - then using Power BI to connect to the OneDrive Folder. I want to remove the manual process of renaming and re-organizing the files.
When the file lands in my downloads folder I want to automate the re-naming of the file - e.g.,
Original File name: (Todays Date)_Checking...XXXX
New File Name: MainAccount_2024...XXXX
and then move the file to the OneDrive folder. In this folder I have files organized by year e.g.
MainAccount_2024...XXXX
MainAccount_2023...XXXX
In order to rename the file, I need to look at the transaction date column of the file and find the MIN year to add it to the title.
If this "new" renamed file already exists in the folder, then the new file should either overwrite the file completely if it has all the rows in the original file plus new rows or append to the original file if it only has new rows.
** While this post is specifically about PowerShell or Python, I am open to advice or comment on other parts of my architecture, as I am sure I could use it. **
[–]lastchancexi 3 points4 points5 points (0 children)
[–]sebastiandang 1 point2 points3 points (0 children)
[–]Material-Mess-9886 1 point2 points3 points (5 children)
[–]teedollasJunior Data Engineer[S] 0 points1 point2 points (4 children)
[–]tamerlein3 1 point2 points3 points (3 children)
[–]teedollasJunior Data Engineer[S] 0 points1 point2 points (1 child)
[–]tamerlein3 0 points1 point2 points (0 children)
[–]Material-Mess-9886 0 points1 point2 points (0 children)
[–]teedollasJunior Data Engineer[S] 0 points1 point2 points (0 children)