+ Reply to Thread
Results 1 to 9 of 9

Alternatives to Power Query for appending multiple tables

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    UK, Marlborough
    MS-Off Ver
    365 (latest beta)
    Posts
    57

    Question Alternatives to Power Query for appending multiple tables

    Forgive this, as I know I have an answer in PQ but I need to get others using Excel in a way that means I'm not the only one doing this so I'm looking for a lower barrier to entry for this activity.

    I seem to remember a few ways in which you can stack multiple tables with the same headings in a robust manner that allows things to be added to the tables (and then once refreshed) will reflect in a pivot that aggregates all this information together:
    - Power Query: works but the set-up is alien to many and won't be maintainable
    - Using the Data Model: I can't remember if this does what I need
    - Using Vstack: this works, but the pivot is inefficient/lazy as it captures the entire column of the Vstack to capture any new lines that get added to the individual tables

    I'd like some feedback on the these, in particular the data model, as this isn't something I've used too much so I don't know if I understand how it works or if it can do this.
    Attached Files Attached Files
    Last edited by jraward; 02-23-2024 at 07:18 AM.

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

    Re: Alternatives to Power Query for appending multiple tables

    Using Vstack: this works, but the pivot is inefficient/lazy as it captures the entire column of the Vstack to capture any new lines that get added to the individual tables
    So use it in conjunction with FILTER, then.

    If you want assistance, please provide a 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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-10-2010
    Location
    UK, Marlborough
    MS-Off Ver
    365 (latest beta)
    Posts
    57

    Re: Alternatives to Power Query for appending multiple tables

    I have added a replication of my data to the original post. Thank you

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

    Re: Alternatives to Power Query for appending multiple tables

    Thanks. You haven't explained how you want the VSTACKed data filtering - what is the criterion?

  5. #5
    Registered User
    Join Date
    09-10-2010
    Location
    UK, Marlborough
    MS-Off Ver
    365 (latest beta)
    Posts
    57

    Re: Alternatives to Power Query for appending multiple tables

    I've added the pivot that is the end result I need. The issue with this is that if the pivot is created to the size of the vstack table/range, and then additional lines are added to the individual tables, then the vstack will increase in size (as I would expect) but the pivot is still referencing the range of the original vstack.

    I've mitigated this by assigning the range of the pivot to the entire column A:A > D:D, however this feels inefficient.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Alternatives to Power Query for appending multiple tables

    You have the latest 365 beta version, so why not try the PIVOTBY or GROUPBY function?

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

    Re: Alternatives to Power Query for appending multiple tables

    For example (and this could be further refined), try this in any empty cell:

    =LET(v,VSTACK(Table1,Table2,Table3,Table4),GROUPBY(HSTACK(INDEX(v,,4),INDEX(v,,1),INDEX(v,,3)),INDEX(v,,2),SUM,,,1))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-10-2010
    Location
    UK, Marlborough
    MS-Off Ver
    365 (latest beta)
    Posts
    57

    Re: Alternatives to Power Query for appending multiple tables

    I'd not seen these features, I'll give that a shot. Thank you
    Last edited by AliGW; 02-23-2024 at 09:58 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

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

    Re: Alternatives to Power Query for appending multiple tables

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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: appending with different number of pages
    By babymax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2021, 03:53 AM
  2. [SOLVED] Power Query: Appending Tables
    By andrewc in forum Excel General
    Replies: 4
    Last Post: 08-26-2021, 09:48 AM
  3. [SOLVED] Probelms with appending data with power query
    By sakhtar100 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-10-2020, 12:42 PM
  4. Power Query: Appending empty data set
    By Phil123456789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2020, 05:29 PM
  5. Appending Charts using Power Query Excel 2016
    By STokhi1 in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 07-02-2018, 07:30 AM
  6. [SOLVED] Multiple tasks on tables in Power Query
    By wrybel in forum Excel General
    Replies: 11
    Last Post: 08-01-2017, 03:17 AM
  7. Appending Power Query in VBA
    By randallrosa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2017, 03:48 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