+ Reply to Thread
Results 1 to 9 of 9

Power Query Refresh & SUMIFS

  1. #1
    Registered User
    Join Date
    07-15-2021
    Location
    England
    MS-Off Ver
    365
    Posts
    6

    Post Power Query Refresh & SUMIFS

    Hi guys,

    New to this forum but moderate/advanced Excel knowledge, (Little VBA however).

    I am struggling with something which might be incredibly easy.

    I have source data from my SQL, through Power Query and i have added columns on to the generated table to include a SUMIFS which calculates Sales Figures based on 3 different criteria's.

    However, when i click Refresh it REF's the field which was allocated in the table.
    See below formula before and after

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,030

    Re: Power Query Refresh & SUMIFS

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-15-2021
    Location
    England
    MS-Off Ver
    365
    Posts
    6

    Post Re: Power Query Refresh & SUMIFS

    For some reason I am unable to post the actual formula used...

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,030

    Re: Power Query Refresh & SUMIFS

    Post the workbook as requested.

    Your formula (do you mean M Code?) is probably triggering a security measure.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,007

    Re: Power Query Refresh & SUMIFS

    Is there a reason you can't do the calculations in PQ (or even in the SQL query)?
    Everyone who confuses correlation and causation ends up dead.

  6. #6
    Registered User
    Join Date
    07-15-2021
    Location
    England
    MS-Off Ver
    365
    Posts
    6

    Re: Power Query Refresh & SUMIFS

    Basically, the PQ pulls Account names and Account numbers and then i pull Sales Figures from a different database.
    After getting the data, i then need to populate my table by Order Type & date range. I can pull the data from the SQL but to then filter it down into the required fields it isnt able to do it.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,030

    Re: Power Query Refresh & SUMIFS

    And the sample workbook?

  8. #8
    Registered User
    Join Date
    07-15-2021
    Location
    England
    MS-Off Ver
    365
    Posts
    6

    Re: Power Query Refresh & SUMIFS

    Should be attached?

    Hope that helps...

    I cant display the PQ on here as it wont be linked to the SQL but when i hit refresh to update the account numbers/names. it then ruins the SUMIFS in the other columns.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,030

    Re: Power Query Refresh & SUMIFS

    Have a look here for the principles you need to apply:

    https://exceleratorbi.com.au/self-re...s-power-query/

+ 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. Power Query - Refresh Preview
    By AllisterB in forum Excel General
    Replies: 1
    Last Post: 05-14-2021, 12:12 AM
  2. Excel Power Query Refresh or Access Query - 2nd Query Run is faster
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2020, 10:16 AM
  3. Refresh all Power Query Pivots performing only 1 Query and stops
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2019, 04:49 AM
  4. Incremental refresh in Power Query / Get & Transform
    By SHI.NL in forum Excel General
    Replies: 1
    Last Post: 09-17-2019, 05:34 AM
  5. Power Query Refresh Order
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2019, 11:02 PM
  6. Power Query - How to refresh queries?
    By ypurcaro in forum Excel General
    Replies: 11
    Last Post: 02-11-2019, 06:47 PM
  7. 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