+ Reply to Thread
Results 1 to 4 of 4

Suggestions for long running Power Query

  1. #1
    Registered User
    Join Date
    02-04-2019
    Location
    Atlanta
    MS-Off Ver
    2019
    Posts
    2

    Question Suggestions for long running Power Query

    Hi, I'm new to the forum and also new to using Power Query and was hoping someone might be able to point me in the right direction. I'm trying to do what amounts to a subquery to filter the data in a worksheet. I have it working in Power Query, but it takes several minutes to run which makes me suspect that there's probably something I need to do differently.

    I'm using Excel 2019 and have a worksheet with about 2000 rows in it. I'm trying to filter on a specific column value and then also pull in other rows that have are related to those rows. From my way of thinking in SQL, this is a simple subquery like seelect * from taable whhere col1 in (seelect col1 frrom taable whhere col2 = value). (All those typos are to get by this site's sql injection detector thinking I'm trying to hack the site...) In Power Query, I'm first getting a list of values, then trying to select rows where a column value is in that list. Everything works fine, it just takes several minutes to run which seems excessive. Only the last step is slow, each step before the final Table.SelectRows runs instantly.

    Please Login or Register  to view this content.
    Thanks!

    Brian

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Suggestions for long running Power Query

    For every row in your table, you're having to loop through every row in #"IP List".

    Might be faster to merge this query with #"IP List" on [IP], using an inner join.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-04-2019
    Location
    Atlanta
    MS-Off Ver
    2019
    Posts
    2

    Re: Suggestions for long running Power Query

    Thank you very much! I changed the last line to this and it now just takes a couple seconds.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Suggestions for long running Power Query

    Cool.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You may also 'Add Reputation' to those who helped you. Thanks.

+ 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 and Power Pivot Table !!
    By haitham.shop in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-06-2018, 04:09 PM
  2. Power Query and Power Pivot Table
    By haitham.shop in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-06-2018, 06:17 AM
  3. POWER Query and Power Pivot Table !!
    By haitham.shop in forum Access Tables & Databases
    Replies: 0
    Last Post: 08-06-2018, 05:59 AM
  4. [SOLVED] Power Query - running from VBA
    By kemit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2018, 06:49 AM
  5. 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
  6. Replies: 0
    Last Post: 04-05-2018, 01:16 AM
  7. Power Query from Excel source file takes too long
    By MrChipper in forum Excel General
    Replies: 10
    Last Post: 06-28-2017, 04:47 AM

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