
New Member

February 14, 2019

Hello,
Any assistance with this effort would be amazing.
We run a daily data file from our financial system and then post it with various pivots. They rebuild the pivots every day and save that file for historical record using the date in the filename.
I'm suggesting we setup a macro-enabled template file with all of the pivots and reference tables in a data model, as well as a power query connection to a data file that changes daily, stored in the same location as the previous days' data files. After uploading the new data file, the user would then browse to the new data file to update the Power Query formulas, changing the connection to new data file(s). The PQ would combine the files into one table and perform the transforms we need for our reporting.
I need each saved file to maintain it's connection to the corresponding data file on that date.
Thanks so much!
Rick


July 16, 2010

Sounds like a good plan, Rick. Set up your first Excel file that uses Power Query to get the source data from the day1 file and load it into Power Pivot. Do your analysis in PivotTables etc. in the same Excel file.
Then when the day2 file is available make a copy of the Excel file containing your Power Query query and Power Pivot model etc. Edit the query to point at the day2 source file. Refresh All and you're done.
Rinse and repeat for day3 and so on.
Mynda


July 16, 2010

Hi Rick,
TBH I've not tried Power Query with a .xltm file. You could give it a go.
For easy updating of the source file, you can use a parameter table in the Excel worksheet that the user can populate the file path with and then they just click 'Refresh All'. I teach this in my Power Query course.
Mynda
1 Guest(s)
