+ Reply to Thread
Results 1 to 5 of 5

How to make a table of multiple XML queries

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    Cambridge, UK
    MS-Off Ver
    2016
    Posts
    3

    Question How to make a table of multiple XML queries

    Hello, I am trying to extract multiple XML responses to a single table. Here is what I'm trying to do:
    XML data source looks like > https://example.com/xml/query1
    This returns a few columns of data relevant to the query: "query1"
    I want to have a list of queries: query1, query-beta, query3, etc. and merge the results in the same table.
    I have Excel 2016, but I've only been able to add a query with multiple sources which I can then append to each-other manually.
    Can you help with a method of creating a single query to https://example.com/xml/* that then adds the different query values from our list and outputs them together in a single table?

  2. #2
    Registered User
    Join Date
    11-11-2015
    Location
    Cambridge, UK
    MS-Off Ver
    2016
    Posts
    3

    Re: How to make a table of multiple XML queries

    bump maybe?

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to make a table of multiple XML queries

    Hello,

    with Excel 2016, you should look into Get & Transform, previously known as Power Query. It supports queries from an xml file and you can combine several queries into one.

    cheers, teylyn

  4. #4
    Registered User
    Join Date
    11-11-2015
    Location
    Cambridge, UK
    MS-Off Ver
    2016
    Posts
    3

    Re: How to make a table of multiple XML queries

    Quote Originally Posted by teylyn View Post
    Hello,

    with Excel 2016, you should look into Get & Transform, previously known as Power Query. It supports queries from an xml file and you can combine several queries into one.

    cheers, teylyn
    Thanks for the response, teylyn. However, adding a query with Get & Transform only offers the option to enter one 'source'. I was able to add multiple ones manually and combine them by hand, but if I have a list of xml 'sources' (especially one that changes), I can't manipulate them all by hand.
    It's a shame that Google Sheets' ImportXML offers such powerful functionality and Excel, which is supposed to be a better and more mature product, doesn't seem to have a similar feature.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: How to make a table of multiple XML queries

    You can create a new query that appends the results of several existing queries. You can copy the M code from one query and quickly create another query to a different source that processes the data in the same way. If the list of queries is dynamic, you can create a function that loops through a list of data sources. The possibilities are endless.

    Power Query uses M, which is a very powerful language. Just like VBA, the recorder only gets you so far. To do more complex things like functions and loops and dynamic parameters, you'll need to learn more about M and edit the query. It is possible to write a function that queries multiple sources and combines them into one output.

    There is not much M expertise in this forum, currently. You may want to ask this question in a forum that covers more complex aspects of Power Bi.

+ 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. Make a List from a table with multiple criteria
    By turist in forum Excel General
    Replies: 7
    Last Post: 04-22-2014, 12:31 PM
  2. Replies: 1
    Last Post: 03-08-2012, 05:36 PM
  3. Replies: 2
    Last Post: 01-31-2012, 05:40 PM
  4. Hide, unhide and make web queries
    By Jacafio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2011, 10:14 AM
  5. How To Make Multiple Name Show Up Only Once in Pivot Table?
    By excellearner90 in forum Excel General
    Replies: 3
    Last Post: 03-27-2009, 04:14 PM
  6. Table queries
    By craigdabbs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-10-2008, 08:06 PM
  7. excel web queries: make the box for the website name much longer
    By susannah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2005, 03:45 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