+ Reply to Thread
Results 1 to 6 of 6

Power Query Refresh Order

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Power Query Refresh Order

    Hi All.

    I need some info on excel power query refresh. I have 14 power queries in one excel file. 1 sheet uses 10 pqs and I know the order in which I created them (some build upon the others). The 1st 3 of the 10 pull data from 3 different tables on an sql server and the rest modify / manipulate / merge / group / etc the data pulled... culminating in the final query (#10) that populates the excel sheet. I have a cmd button on the excel sheet and I want to refresh the data without vba "ActiveWorkbook.RefreshAll" - I dont want to refresh data that is used on other sheets - to save update time.

    So.. Do I refresh the pqs in the order of creation (mimicking the dependencies)? Table 10 is based off table 9 (which is off table 5) and table 8 (which is off table 5) and table 7 (which is off 6 and ) and table 4 (off table 3) and table 2 (off 1).... (something like this)..

    Or, can I refresh the 1st 3 sql server queries only and just the last one #10? Will refresh of #10 cause the predecesors to refresh also? Or do I need to refresh all in the order in which I created them (building in order)

    Thanks
    Steve
    Harrisburg, PA

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Power Query Refresh Order

    Hey Steve,

    I though you simply click on the Data Tab and in the Queries & Connections Group click on "Refresh All" and it should know the correct order.

    Marv
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Re: Power Query Refresh Order

    Yes, I can refresh all, but I don't want to refresh queries that do not belong to that sheet. I only want to refresh what is needed to update the one sheet.

  4. #4
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Re: Power Query Refresh Order

    If I just refresh the final query (while showing the "queries & connections" command bar, I see the final query spinning only. I do not see the preceeding queries update.. and I do not see the 2 sql server source queries spin (update)

  5. #5
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Re: Power Query Refresh Order

    Here is an update. I just realized this. I have a Range(BU_NAME_RANGE) from excel that I concatenate into my 1st sql statement... If I change the value in the excel range, and just refresh #10, the data comes back with the new where!! That means that when I refresh #10, #1 had to be refreshed!!!
    Please Login or Register  to view this content.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Power Query Refresh Order

    Are you saying that Excel knows the precedence of formulas and queries and Refresh All knows which to do first and second, etc? I think Excel knows!

+ 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. Power Query - How to refresh queries?
    By ypurcaro in forum Excel General
    Replies: 11
    Last Post: 02-11-2019, 06:47 PM
  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