+ Reply to Thread
Results 1 to 12 of 12

Multiple tasks on tables in Power Query

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Multiple tasks on tables in Power Query

    Hi Experts,

    I have 30 tables import from Word document save as Web Page (HTML) format to Power Query. I import this tables using "From Web" icon. Is it possible, to do multiple tasks on this tables like remove rowes or set up first rowes as column headers. I would like to select all tables and like in excel sheets make changes for all tables.

    Thanks for help !

  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: Multiple tasks on tables in Power Query

    Is your source data stored in 30 different files?
    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
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Multiple tasks on tables in Power Query

    No all the tables are in one word file.

  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: Multiple tasks on tables in Power Query

    Post a sample of your Word file, and your existing (single table) query.

  5. #5
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Multiple tasks on tables in Power Query

    Please Login or Register  to view this content.


    I get an error message when I try to attach a file
    Last edited by wrybel; 07-20-2017 at 09:11 AM.

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

    Re: Multiple tasks on tables in Power Query

    What does your output look like - are you trying to combine the tables?

  7. #7
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Multiple tasks on tables in Power Query

    Yes using append button.

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

    Re: Multiple tasks on tables in Power Query

    Okay - first, write a function which performs the table transformation:
    Please Login or Register  to view this content.

    Then you can apply this function to each data table in the html file, and expand:
    Please Login or Register  to view this content.

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

    Re: Multiple tasks on tables in Power Query

    I wonder if this helped?!

  10. #10
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Multiple tasks on tables in Power Query

    Unfortunately no. I open a blank query and paste a function. Then open another blank query and paste your second code and then I receive this error
    Please Login or Register  to view this content.

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

    Re: Multiple tasks on tables in Power Query

    Did you name the first function appropriately (e.g. "fntransformTable" ) ?

  12. #12
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Re: Multiple tasks on tables in Power Query

    Ok, it works. Thansk for 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. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 AM
  2. Replies: 1
    Last Post: 06-06-2017, 11:38 AM
  3. Get & Transform (Power Query) not showing certain tables
    By BamBamMoneyBags in forum Excel General
    Replies: 0
    Last Post: 03-22-2017, 12:22 PM
  4. Denesting tables in XML data imported into Power Query
    By Cuine100 in forum Excel General
    Replies: 1
    Last Post: 08-11-2016, 09:30 PM
  5. Can I use Power Query to pull from Pivots in multiple workbooks?
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-31-2016, 10:24 AM
  6. Power Query - how to append tables
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2015, 04:55 AM
  7. Using Power Query to do multiple searches on a website
    By eodsolo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2014, 09:33 PM

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