+ Reply to Thread
Results 1 to 12 of 12

Power Query - How to refresh queries?

Hybrid View

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Power Query - How to refresh queries?

    I am not familiar with Power Query, but I do something similar with MS-Query. I use MS-Query to establish the connection to the database. MS-Query has a query editor similar to MS-Access but except for very simple queries, it is more of a hindrance than a help. In my case, I work with Oracle databases. I write and debug the code there and then copy it into the SQL window for MS-Query.

    If MS-Query can display it graphically, then I can pass parameters to it either at run-time though a dialog box or through cells on the spreadsheet. The cells could have dynamic formulas like TODAY()-1 and TODAY()-91 or whatever.

    If MS-Query cannot display the SQL graphically, then I have a method using Excel Tables and a short piece of VB code to re-write the query prior to execution. This not only allows me to pass parameters, but I have done things like switch tables, rewrite where clauses and just about anything else as long as I stay in the same data connection (database).

    If you are interested, I can walk you through the setup.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Registered User
    Join Date
    12-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Power Query - How to refresh queries?

    Hello dflak,

    Thank you very much for the offer. However, I don't VB code and MS Query at all. Otherwise, I would love to learn from you. Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code to change Power Query source and refresh
    By kersplash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2021, 07:35 AM
  2. Editing Workbook Queries (Power Query)
    By dizjackson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2019, 03:11 AM
  3. Power Query shows as external data connection and can't refresh online
    By fuadramsey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2018, 06:04 PM
  4. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  5. Does My VBA Code To Refresh CSV Power Query Connections Need To Change for MySQL Queries?
    By beaglesBuddy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2017, 02:57 PM
  6. code to refresh power query not working ..
    By Hassan1977 in forum Excel General
    Replies: 0
    Last Post: 08-31-2016, 12:31 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1