Results 1 to 2 of 2

Thread: Replacing an excel (file) data source with an (internal) query

  1. #1
    Seeker christiane.latte's Avatar
    Join Date
    Feb 2018
    Posts
    8
    Articles
    0
    Excel Version
    2016

    Replacing an excel (file) data source with an (internal) query



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hei,

    another thing: I need to replace a data source (external (= other location on my drive) excel file) with either a) a sharepoint list or b) with the result of a query (in the same file). However, when I click on change source, I can only replace the excel source with another excel source.
    Is there any way to replace an excel source with some different source?

    Kind regards,
    Christiane

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,243
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Absolutely.

    Make a new query that connects to the new data source, and load it as a connection only. Use a name like "RawData-Sharepoint" or something. You will want to get as far in this query as drilling in to your raw data source table. (So if it's an Excel file, drill in to the table you want before you load that query.)

    Go back to the original query and locate the step that shows the exact same output as you have in the other query. (Same format - so the first drilled in piece.) Right click that step and choose Extract Previous. It will prompt you with the name for the new query which you can call "RawData-Local" or something.

    Now, go to your original query. The formula bar for the Source step should be showing #"RawData-Local". Change that to #"RawData-Sharepoint" and you should be good to go.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •