• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel Template File That Uses Power Query|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Excel Template File That Uses Power Query|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryExcel Template File That Uses Power…
sp_PrintTopic sp_TopicIcon
Excel Template File That Uses Power Query
Avatar
Rick Waffird

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 14, 2019
sp_UserOfflineSmall Offline
1
February 14, 2019 - 3:44 am
sp_Permalink sp_Print

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 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
February 14, 2019 - 9:39 am
sp_Permalink sp_Print

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

Avatar
Rick Waffird

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 14, 2019
sp_UserOfflineSmall Offline
3
February 14, 2019 - 11:08 pm
sp_Permalink sp_Print

Thanks so much Mynda!

Will a Template file (*.xltm) work?  I also want the user to locate/browse to get the new data file - much like the old Get Data function worked prompting the user for the file.  I've not been able to reproduce that function in the new PQ methods.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
February 15, 2019 - 8:52 am
sp_Permalink sp_Print

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

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Richard West, Wesley Burchnall, Emma Klonowski, Clayton Watson, Kelly smith
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291

 

Member Stats:
Guest Posters: 49
Members: 31913
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.