+ Reply to Thread
Results 1 to 35 of 35

Excel Power Query with file being used

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Excel Power Query with file being used

    Is there a way to still use Power Query even if the source file is open?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    You can use PQ with open source file, closed source file, etc.
    Question is not clear.

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    No it's pretty clear, it's just a simple question, sorry. Can you use it if the file you are pulling data from is open.

    I have a PQ but if I have one of the files open then it gives me an error and does not update. As soon as I close the file, the PQ updates fine.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Check PQ rights, check file rights, check access server rights .....
    Like I said, question was not clear.
    But If you know better, good luck.

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    I don't know better that is why I am on this site. There was no indication that I was saying you were wrong on an answer, you didn't even offer an answer for me to "know better". But i really don't know how else to word it, i'm sorry. PQ pulls data from several workbooks. if one of those workbooks are open then it fails. "Process cannot access the file because it is being used by another process." Hence the question if you could do a PQ if the source workbook was open.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    If you have access to the files from the same place (I assume that) and only one file gives you that warning so you can...
    kill all excel proccesses and try again (this file can be opened in the background)

  7. #7
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    This specific scenario.

    I have 8 files in a second tier folder. My PQ file is in the parent folder. I direct my PQ to that subfolder. I have tried it with all of the eight files. Same result. I created these files. There are no extra restrictions placed on the files.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    And seven files works well but one (the same) not?

  9. #9
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    It stops the process. I have no clue where it does though or how much gets updated. It just gives me that error, names the specific file and under Queries and Connections it says Download did not complete.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    • Did you kill excel proccess? (the best way is restart PC)
    • Did you try to recreate connection to this file?
    • All files are independent from each other (no connection between them)?
    • Did you try to create brand new source file and connect it via PQ?

    I assume the warning is for the same file all the time

  11. #11
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    1. Yes
    2. No
    3. Yes
    4. No

  12. #12
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    Instead of just giving me the name of the open file, it is doing ~$Name, so its like the temp file

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Maybe you tryin' to load the same file twice.
    Sometimes PQ needs more time (PQ problem) to load especially if data from source is big and some transformation is there. But I suppose you tryin' to get table from source only without any transformation (based on your previous thread)

    edit: I tried to recreate your problem (with 5 files - I'm lazy ) and all works well. Doesn't matter files are closed , open, partially closed/open.

    You can try to clean Temp folders (windows and user) and try again
    Last edited by sandy666; 11-02-2017 at 04:07 PM.

  14. #14
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    Yeah. pretty straightforward. 14 columns. 200 or so rows. basic data entry.

    I'll clean it all up and try again now that I know PQ should work. If I can get it to work, then I'll be a made man. At least for that worksheet...God I hate shared files.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Are you tryin' connect files via Query from file OR Query from folder?

  16. #16
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    Get Date > From File > From Folder

    That is the path I followed

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    It was suggestion If one way doesn't work - try another

    Eight files is not too much

  18. #18
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    I'm sure I built it wrong since it is my first time ever building a PQ and soruces online/youtube are not very helpful on how to pull data from a workbook that has other unwanted worksheets. Online is all, compile worksheets in same workbook or compile workbooks.

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    So try with Query from file

  20. #20
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    OK. but how do I do that, then combine the 8 sheets?

  21. #21
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Eight sheets or eight workbooks?
    Could you explain structure of the single file?

  22. #22
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    Sorry. Eight workbooks. Each workbook has about 4 sheets, but only one of those is being pulled.

    The sheet is just 16 columns with headers that may go 200 rows deep

  23. #23
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Ok,
    call (load) first workbook, select this table what you want, load as connection, now you can rename name of the table to eg. Client1
    do the same for all other workbooks.
    Next you can load selected Client(n) to the choosen sheet with apprpriate name.. Eg. Table Client1 to the sheet called Client1 (or table John to the sheet John).
    Before you strat try to prepare main workbook with all sheets, John, Mark, Mary, etc...

    Columns and rows doesn't matter because you will work with tables first

  24. #24
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    So is this making my workbook have 8 sheets as well? Instead of just one merging their 8?

  25. #25
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    You said you want one table from the source
    Maybe try to describe what you want as result

    first workbook (source), few sheets but one is needed.
    second workbook (source), few sheets but one is needed.
    etc...

    result?

  26. #26
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    Workbook one,two,three,four each have all these sheets "Prod Totals", "Tracker", "Teams", "DCMR."

    I want to pull "DCMR." from all four and merge them into one master "DCMR." sheet.

  27. #27
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    So load DCMR tables from each workbook as connection then merge them and then load merged table to the sheet as table

    (it's hard to explain in text. )

    Merge queries

  28. #28
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    So copy the eight separate sheets into mine and then merge them?

  29. #29
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    You've 8 workbooks
    Each workbook contain DCMR (sheet/table)
    Load DCMR from the first workbook as connection
    Load DCMR from the second workbook as connection
    etc...
    Merge all DCMR queries into one
    Load merged DCMR as table into the appropriate sheet in your main file
    Last edited by sandy666; 11-02-2017 at 05:29 PM.

  30. #30
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    OK. I'll give that a shot. thanks

  31. #31
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    btw. If I don't see structure and kind of data I can't say merge or append it will be your choice
    maybe load each DCMR as table one after another will be enough because clients are different
    Last edited by sandy666; 11-02-2017 at 05:34 PM.

  32. #32
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    https://social.technet.microsoft.com...rum=powerquery

    here is someone else having the same issue. No clue what the 'answer' means.

  33. #33
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: Excel Power Query with file being used

    I think I got it. I figured out how to filter out $

    but another question. The PQ is copying the headers over from each sheet so that I have 8 instances of headers in my table. How do I not have that?

  34. #34
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    But now (Query from file) you don't have ~$ (I hope)

  35. #35
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel Power Query with file being used

    Quote Originally Posted by taylorsm View Post
    The PQ is copying the headers over from each sheet so that I have 8 instances of headers in my table. How do I not have that?
    I don't know what you did.
    Try to describe your action everytime if you've question about result of your action. With details
    Read my blue footnote

    here is a good start for you: Import data from external data sources (Power Query)
    Last edited by sandy666; 11-02-2017 at 06:00 PM.

+ 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. [SOLVED] Power Query Not loading all Rows from Source File
    By jdriscol in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2017, 04:03 PM
  3. Replies: 11
    Last Post: 08-01-2017, 06:08 AM
  4. 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
  5. [SOLVED] Adding Missing Dates To A .CSV File Via Power Query?..
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2017, 03:54 PM
  6. Excel Power Query - Can it do what I need?
    By Spiros in forum Excel General
    Replies: 2
    Last Post: 08-24-2016, 11:23 AM
  7. Power Query how do i reuse on a new file
    By thorrrr in forum Excel General
    Replies: 3
    Last Post: 05-03-2014, 02:07 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