Combining Multiple Files from a folder using Power Query in Excel or Power BI ( ⚠️see description )

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • ⚠️ see below for link to updated video on SharePoint connection ⚠️
    How to use Power Query for Excel and Power BI to consolidate multiple files into a single table of data, whether you're using OneDrive , SharePoint or a traditional network folder.
    As well as showing the basic steps, this video explains the inner workings of the Power Query helper functions so you fully understand how it works
    00:00 Intro
    00:19 Connecting to a folder on your C :Drive / Network
    02:39 Using the Transform Sample File to clean up your data
    06:09 The Helper Queries explained
    10:08 Connecting to a folder on SharePoint or OneDrive for Business
    *******************************************************************************
    ⚠️Check out my updated video (March 2022) on using SharePoint.Contents ⚠️
    • The best way to connec...
    *******************************************************************************
    How to connect to a file on SharePoint and OneDrive
    • How to use Power Query...
    My Articles on LinkedIn
    / wynhopkins
    Our Website and Training Services
    accessanalytic.com.au/
  • Jak na to + styl

Komentáře • 261

  • @alexkim7270
    @alexkim7270 Před 3 lety +6

    Wow this is great! I've been curious to know how the other buttons work in that interface but I simply cannot afford the time to bump into obstacles and spending the rest of the day working on fixing those obstacles. I didn't even know such trick existed 3 years ago! Thanks a lot for sharing your knowledge, Wyn! This is so good!

  • @GrainneDuggan_Excel
    @GrainneDuggan_Excel Před 3 lety +1

    Thanks Wyn. Clear description of the intermediate steps. I like your tip to have a reference query for the folder. That saves so much effort when the path changes - which happens all too often.

  • @bobwalden7059
    @bobwalden7059 Před 2 lety +2

    Best explanation of files in folders I’ve found on YT. THANK YOU!

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thank you very much Bob. I appreciate you taking the time to leave a comment.

  • @victorhansson3410
    @victorhansson3410 Před 2 lety +1

    Oh wow, this was great. I've watched a few videos on this but none of them explained it as well as you did. Thanks a lot for explaining the "why" and not just the "how"!

  • @joymedvecky2659
    @joymedvecky2659 Před rokem +1

    What a GREAT explanation! Very clear, conscience and in plain terms - I can now properly move forward with my Power BI Power Query, thanks 🙂

  • @700997372mp
    @700997372mp Před 3 lety +2

    Great video, I've done this many times and never really thought about changing the Transform Sample File. Good explanation of what the steps are doing.

  • @YasirKhalid1
    @YasirKhalid1 Před 3 lety +1

    Great vid Wyn!
    Thanks for explaining step-by-step n the differences between the two approaches

  • @jarich7667
    @jarich7667 Před rokem +1

    This was such a big help!! I stepped into a project and things are very different from how I usually work. This explanation helped me immensely!! I appreciate your help more than I can say! Thank you!!

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      You're welcome Jason. Thanks for taking the time to let me know it helped. Much appreciated.

  • @bjorns1039
    @bjorns1039 Před 2 lety +1

    You can do it in many ways, but this was really lean och quick! The best way! Many thanks!!

  • @federicotait6470
    @federicotait6470 Před 5 měsíci +1

    Helped me a lot to understand the principles of Power Query. Very well explained and easy to follow. Brilliant! Thank you so much!

    • @AccessAnalytic
      @AccessAnalytic  Před 5 měsíci

      You’re welcome. Thanks for taking the time to leave a kind comment

  • @nataliaoleksander6386
    @nataliaoleksander6386 Před 2 lety +1

    I like this guy. easy to understand. No nonsense. Very explanatory.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks, this guy is grateful for the kind comment 😀

  • @joedi
    @joedi Před 2 lety +2

    I can’t believe he doesn’t have more subs. He was the only one who answered my struggle with SharePoint. Not this video but the SharePoint folder one. Mind blowing!

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks dee. We're on an accelerating trajectory! Share the word. 😁

  • @jesamujong7477
    @jesamujong7477 Před 7 měsíci +1

    My go-to guy! Precisely what I needed. Thank you, Wyn!

    • @AccessAnalytic
      @AccessAnalytic  Před 7 měsíci

      Cheers, make sure you check out the updated version of this video too. Link is in the description

  • @heshamfouad8886
    @heshamfouad8886 Před 3 lety +1

    Specific, to the point, informative, simply brilliant
    Thanks so much for sharing your knowledge, and much more thanks for sharing them in a smart time saving videos :)

  • @venkatreddyb628
    @venkatreddyb628 Před rokem +1

    It is excellent. I clearly understand why so many queries were created while importing from a folder. Now, I can re-use the helper queries for multiple instances of imports from the folders. Thank you for your effort...

  • @oladman9058
    @oladman9058 Před 2 lety +1

    You will never know how much you helped me with this video. Many thanks and God bless you real good.

  • @timdowden7725
    @timdowden7725 Před 2 lety +1

    Thank you for this very helpful tutorial. I'm new to PQ, and was able to start using it effectively after this 20 minute tutorial NICE!!

  • @rebecavarela5804
    @rebecavarela5804 Před rokem +1

    Thanks for the perfect and paused explanation.

  • @user-gd2bd7gh5o
    @user-gd2bd7gh5o Před rokem +1

    Tks so much for the detailed video! I just combined 10 files with Power Query !

  • @YouExcelTutorials
    @YouExcelTutorials Před 3 lety

    Thanks for sharing Wyn! Very clear and detailed 👍

  • @mariaen8394
    @mariaen8394 Před 2 lety +1

    Thanks so much for explaining this transformation. You really simplified it for me. :)

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thank you for taking the time to leave a comment Maria

  • @IvanCortinas_ES
    @IvanCortinas_ES Před rokem +1

    Brilliant explanation. Thank you Wyn!!!

  • @nickvanmaele8059
    @nickvanmaele8059 Před rokem +1

    I finally understood what was going on in there. Thanks Wyn.

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Thanks for taking the time to leave a kind comment Nick

  • @barttitulaerexcelbart9400

    Very nice video! thank for explaining all those intermediate steps!

  • @user-no5el6dv4p
    @user-no5el6dv4p Před rokem +1

    I spent several hours trying to figure out on my own how I’d broken my attempt at this today 😂 thanks for the help! Solved my problem

  • @PonySldr1
    @PonySldr1 Před 3 lety

    Excellent vid. Goes to prove you can always learn something even if you've been doing a process for a long time. Good on ya Wyn

  • @BoredAtWork2000
    @BoredAtWork2000 Před 2 lety +1

    Exactly what I was looking for, thanks!

  • @HassanRaza-pe5rh
    @HassanRaza-pe5rh Před 2 lety +1

    Very clearly explained. Thank you sir!

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      You're welcome Hassan, thanks for the kind comment

  • @perthling
    @perthling Před rokem +1

    Wow! Your walkthrough of the helper queries was more profound that I thought it would be. Opened my eyes to even more Power Query potential.
    I've been fooling around with PQ for a while, but now you make me want to go steady. 🤣

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      😳😆

    • @perthling
      @perthling Před rokem +1

      I'm signing up for the training tonight. A couple of years ago I co-lead an initiative to completely redesign reporting for our organisation's project management office and we developed portfolio wide dashboards. It worked great, but I would be hard-pressed to do it from the ground up without researching afresh all the various techniques. I can already see heaps in your approach that I would have benefited from. Really wish I knew about this back then! (PS I'm Perth-based too).

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      That’s great Luke!

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      @@perthling which training were you signing up for?

  • @rogergrinde7321
    @rogergrinde7321 Před rokem +1

    This is fantastic! Thank you. This also helped me learn about parameters

  • @the_imonem
    @the_imonem Před 2 lety +1

    Thank you, pretty informative!

  • @mnowako
    @mnowako Před 2 lety +1

    Another great video. Thank you!

  • @MrWish332
    @MrWish332 Před 2 lety +1

    Thank You So Much, This is really very useful.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      You’re welcome Vishal, thanks for taking the time to leave a comment.

  • @Ganja1974
    @Ganja1974 Před 2 lety +1

    Excellent! used it before, but never realized how it can be improve the overall process

  • @bradfry6396
    @bradfry6396 Před 2 lety +1

    Thanks Wyn, you have saved me again 👍

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      No worries Brad, thanks for letting me know you're finding these useful

  • @danmilka
    @danmilka Před 11 měsíci +1

    Awesome, thank you very much, you saved me!

    • @AccessAnalytic
      @AccessAnalytic  Před 11 měsíci

      I appreciate you taking the time to let me know you found it useful. Cheers

  • @roberthblanchard
    @roberthblanchard Před rokem +1

    Thank you! You really saved me at work today!

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      You're welcome Robert, thanks for taking the time to let us know we've helped

  • @leebecker8255
    @leebecker8255 Před 2 lety +2

    Really helpful video, thanks Wyn!! I particularly found the explanation of the helper files useful, and I didn't know you can use the Transform Sample file to tidy up the files before they get combined. I'd previously been doing some awkward thing to filter out all the column headings after they had been appended...🙄
    BTW, I'm really looking forward to series 2 of your podcast too :D

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Great Lee! Episode 1 is out now 😀

    • @leebecker8255
      @leebecker8255 Před 2 lety

      @@AccessAnalytic oooh thanks! I didn't even check 🤦

  • @jacoblee1954
    @jacoblee1954 Před 2 lety +1

    Thanks for doing this video it is really helpful .

  • @sedarathnadcd
    @sedarathnadcd Před 2 lety +1

    Woooow. It is comprehensive explanation. i was trying two days in youtube searching an explanation like this. Thank you Access Analytic. Specially meaning of "Content (0) ", details abt transform folder.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks for taking the time to leave a kind comment Priya

  • @MayankRaoka
    @MayankRaoka Před 3 lety +1

    Very useful and simple explanation

  • @Luciano_mp
    @Luciano_mp Před 3 lety +1

    Great. Thank you!

  • @MrKamranhaider0
    @MrKamranhaider0 Před 2 lety +1

    Oh you help me a lot .Before this I had to build customs function for transformation.

  • @williamarthur4801
    @williamarthur4801 Před rokem +1

    That was really good, I've always used add column excel workbook, but even with a an excel file I just expanded in the binary and was able to make changes using the generated function,

  • @timpullen6487
    @timpullen6487 Před 7 měsíci

    What a brilliant lesson - Thank you very much. (I'm from a sound engineering background - When listening on headphones there is a lot of low frequency interference - bangs bumps etc. - I would suggest that by putting a low frequency filter on the audio, removing everything below 100 Hz.

    • @AccessAnalytic
      @AccessAnalytic  Před 7 měsíci

      Thanks, hopefully the sound has improved in my more recent videos. This was recorded few years ago

  • @zahrakhan5329
    @zahrakhan5329 Před 2 lety +2

    Thank you, this is so useful!
    Just wondering if it's possible at all to use this process to combine multiple excel Sharepoint files with some files that have a few additional columns. The main columns that I need to combine are all named the same in each file, but some have extra calculation columns that are unnecessary for my consolidation. Any insight on how to transform this would be really appreciated!

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Yes, same process should work. Just remove the columns you don’t need as one of the final steps in your consolidated table
      If your Transform Sample file step refers to specific columns then ensure the code is only referencing the columns that exist in all files.

  • @melissagenthner2705
    @melissagenthner2705 Před 2 lety +1

    Great video. Although I had an issue with the "The key didn't match any rows in the table" so to resolve it I had to format all of my xlsx files as tables then it seemed to work ok.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks, normally that issue means one of your excel sheets was named differently to the others or there was one empty sheet or some oddity in one of the files compared to the others

  • @antronchestertonian9465
    @antronchestertonian9465 Před rokem +1

    Super helpful. I was wondering what those autogenerated steps were doing and how they were created in an existing query I was looking at.

  • @terrifayle6685
    @terrifayle6685 Před 3 lety +1

    Very freakin' useful, thank you!! I tried load from folder multiple times and not understand all the queries created was an issue, so I'd delete and load individually. I'm going to give it a whirl!

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety

      That’s great Terri 😁. Thanks for letting me know

  • @suheilsamara7955
    @suheilsamara7955 Před 2 lety +1

    Thanks Wyn,
    Was wondering which is more efficient, to apply the transformation on the sample file or on the consolidated file.
    I have noticed no major performance difference in both scenarios while combining 50+ files in Power BI query.
    What do you suggest.
    Thank you.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Hi Suheil, I’m not aware of any performance differences. From a maintenance point of view I do as few steps as necessary in the transform sample file, but that’s just a personal preference.

  • @yasinacar8028
    @yasinacar8028 Před 2 lety +1

    İt' s very useful video 👍👏

  • @chrishartnell8936
    @chrishartnell8936 Před 9 měsíci +1

    Great video. When did the ability to get files from SharePoint folder appear in PQ? Great to see its on the options now and not have to use workarounds. One draw back appears to be the need to have access to the whole site. Ive just built a query that allows consolidation of project files but if those files are in a site that has multiple libraries that have restricted access and the PMO team only have access to one library on that site I presume the query wont work for them? So this powerful functionality has implications on the site architecture eg in this case I will need to create a PMO site which the PMO team can have full access to?

    • @AccessAnalytic
      @AccessAnalytic  Před 8 měsíci

      It’s been there for many years. You may have to adopt the SharePoint.Folder approach if full path access is unavailable. That refresh is a lot slower though.

  • @khalidmajeed2886
    @khalidmajeed2886 Před 2 lety +1

    sir,useful video for student of power query

  • @annisaaprima9688
    @annisaaprima9688 Před rokem +1

    Hi Thank you for the excellent sharing! A bit question, how would you the power query if the Share Point Folder are owned by other people (only shared to us)? Many thanks in advance

  • @othukeajaye2415
    @othukeajaye2415 Před rokem +1

    Wow, this was really great and easy to understand. You mentioned that it would be a lot harder if the source files were different but not impossible. Do you have a video on that or can you point me to a resource on what to do in that scenario? Thank you

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      The main approach is to put the different files in a different folder, repeat the exercise and then append the final outputs into one table before loading. I don’t have a video on that.

  • @Joann7000
    @Joann7000 Před 2 lety +1

    thanks for this video!
    my issue is clicking on refresh all takes time to update content by triggering the external connections. So, i need to automate this. is it possible to refresh via power automate without manual trigger?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      I’m not sure it’s possible with Power Automate desktop. I have used 3rd party software called Power Update to automate refreshes in the past.
      poweronbi.com/schedule-power-bi-update-with-power-on/

  • @bryant9350
    @bryant9350 Před rokem +1

    Wonderful explanation, thank you!
    May I ask how to remove the last column of all the files in the folder? It is worth noting that last column, in my case, is not always the same column in every file (ex. some time it's column R, other times S and so on).
    Thanks in advance

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Maybe go to the transform sample file and add this after the Promoted Headers step
      = Table.SelectColumns(#"Promoted Headers",
      let
      ListOfHeadings = Table.ColumnNames( #"Promoted Headers" ),
      NumberOfHeadings = List.Count( ListOfHeadings ),
      HeadingsToKeep = List.FirstN(ListOfHeadings,NumberOfHeadings-1 )
      in
      HeadingsToKeep
      )

  • @chandniiyer4720
    @chandniiyer4720 Před 3 měsíci

    Hi, thank you very much for this video. This is really helpful for me! I just wanted to check about the workaround you mentioned in renaming multiple columns instead of making the first row as headers. In which video have you covered it please ?

    • @AccessAnalytic
      @AccessAnalytic  Před 3 měsíci

      Can you let me know what minute of the video I mention that

  • @rachelfoulger9705
    @rachelfoulger9705 Před 2 lety +1

    Hi
    This is one of the most helpful videos I've found so far, thank you! I was getting so confused why so many queries were created on the left hand side when importing from a folder on Power BI and this explains it all so clearly.
    One question I do have - do you know whether there is a way to combine only a select number of rows from each file that you're importing? I have a folder with a new spreadsheet of information for every day, for example, and I'd like to combine them but each day's spreadsheet has 25,000+ rows. I only actually need to import and combine the first 5,000 from every file and combine (as they are sorted to show the most important products in the top 5,000 rows and these are what we're interested in analysing). I've tried adding a 'FilterRows' parameter but with no success so I think I may be doing it wrong.
    If you have any answers that would be amazing.
    Thank you,
    Rachel

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Glad you found this helpful Rachel. For your scenario I’d click on the sample file, then go to the Keep Rows button and choose Keep Top Rows the type 5000 in the box.

  • @dennisjohnson9753
    @dennisjohnson9753 Před 9 měsíci +1

    This is a great video in the series on this process. Question - in the file name there is data that is needed in the record - how would I pull the file name into a new column before the combine where I lose that?

    • @AccessAnalytic
      @AccessAnalytic  Před 9 měsíci

      Thanks Dennis, in the Consolidation query created at around 14:20 there should be a Removed Other Columns step with a cog next to it. Maybe one of the columns being removed there for you is Source Name ?

  • @iankr
    @iankr Před 3 lety +1

    Hi Wyn. Many thanks for this. I've managed to combine the files in a SharePoint folder with your helpful guidance here. Is there any way to add a new column to the Consolidation query that has the source filename for each row of data? I'm doing this in Power Query, and my Consolidation query doesn't have the Source Name column, which yours has retained. Not sure why.

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety

      Hi, in the Consolidation query created at around 14:20 there should be a Removed Other Columns step with a cog next to it. Maybe one of the columns being removed there for you is Source Name ?

    • @iankr
      @iankr Před 3 lety +1

      @@AccessAnalytic
      Many thanks for your response. I didn't have a chance to look at this today. I'll have a look tomorrow and let you know how I get on.
      Regards.

  • @robinsteyaert9901
    @robinsteyaert9901 Před 2 lety +1

    Thanks for the clear explaination. I only have one question.
    Can you help me understand how a change (ex. Input of the smiley) in the "Transform Sample File" flows though in the "Transform File" Custom function? When I change something in the 'Transform Sample File", it does not change anything in the "Transform File" custom function. Thanks in advance, Robin

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Hi Robin, make sure you don't make any change directly to the function otherwise it breaks the link. Otherwise in theory changing anything in the sample file will automatically update the function

    • @robinsteyaert9901
      @robinsteyaert9901 Před 2 lety +1

      @@AccessAnalytic Thanks, that seems to solve the problem!

  • @JaniceCook-jx8pw
    @JaniceCook-jx8pw Před rokem

    Great video that I was introduced to at the Global Excel Summit 2023.
    However, I don't have a 'From SharePoint' option displayed - do I need to activate this in some way (I have a full Business 365 licence) and SharePoint folders Sync'd.
    I used 'From Web' instead, and seemed to give the same options. I selected 'Organisational Account' and signed-in/Authenticated. but when I click 'Connect' I get
    "We couldn't authenticate with the credentials Provided". I get this continually, and have tried several accounts - same thing - what am I missing on the set-up front?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Bizarrely Business version doesn’t have the SharePoint button but the following code will work even though Business Version doesn't have the SharePoint Folder button
      = SharePoint.Contents("YOURTOP LEVELFOLDERPATH/", [ApiVersion = 15])
      If you create a blank query and then replace the Source Step formula with this code it should work, then you get a list of Tables and click on the word Table next to Documents (normally around Row 6) and then keep on clicking each Table against each Folder to get to the right folder. Finally click on the double down arrow on the the first column called Content (when you can see all your files listed). That should trigger the folder consolidation.
      Note that your TOPLEVELFOLDERPATH will be something like mycomany.sharepoint.com/ with maybe one subsite name after the /. It's not the entire URL from your sharepoint folder.

  • @PrestonFlyer
    @PrestonFlyer Před rokem

    Another Excellent video! One question though when consolidating excel files from a sharePoint folder how do I get the consolidated file to include the File name of the source file - PQ does this when I consolidate from a local drive vis the Transform and Edit button - I need this as I use this to show trends in the data from version to version

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      In the comments there’s one from IanKR. Check it out

  • @g.mayerlingdelgado6346

    Great info, do you have a recommendation when within a Share Point Location we want to append certain (not all) the files in that folder?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      You can apply a filter in one of the first few steps.

  • @tsetsegbat1920
    @tsetsegbat1920 Před rokem +1

    Thank you soo much for the super useful content. Can you please help me on the error when connecting multiple excel files on share points to Pbi. Some reason it won’t recognize my .Xlsx files keep giving pop up message it can’t recognize data format and use csv, txt, excel etc yet all of my data set is all excel in xlsx. Thank you soo much in advance.

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Hi , there’s currently a bug that’s been fixed. Check you have the latest version of Power BI desktop installed
      Also check out my updated video:
      czcams.com/video/-XE7HEZbQiY/video.html

  • @e.dejong6421
    @e.dejong6421 Před 3 lety +1

    Thanks. Great vid. Do you know how i can get the file name of every file into a column? (A side the information that is already in every file?) Sometimes a date or name in the filename can help to determen what the sourcefile of that row of data was.

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety +1

      At around the 2 minute mark you can see the file names appear in column 1.

    • @e.dejong6421
      @e.dejong6421 Před 3 lety +1

      Oh yea, source.file. Thanks again!

    • @e.dejong6421
      @e.dejong6421 Před 3 lety

      @@AccessAnalytic Hello W, but when i combine files that are in a Sharepoint folder, i don't get the sourcename in a kolumn in the output. In your example i also don't see the source name. Do you know a solution for that? Thx!

  • @yadukrishnankv5265
    @yadukrishnankv5265 Před měsícem +1

    Wow, great video! Thank You.
    I have a case where I want to connect to a hidden tab in an excel file stored in network, is it possible to do that?
    When I click combine on my file, it does not show up the hidden tabs.

    • @AccessAnalytic
      @AccessAnalytic  Před měsícem

      You could pick a visible sheet, then in the Transform Sample File query click on Navigation and change the sheet name in the formula bar. You'll likely need to deleted the change type step at the end of your consolidation query

  • @mstone8001
    @mstone8001 Před rokem

    Super helpful! If there’s only 1 worksheet that contains a table, will this process ‘find it’ or do I have to specify the worksheet by name?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      You have to specify which sheet or table and each file must have same sheet name or table name

  • @amithmithu2005
    @amithmithu2005 Před rokem

    Thanks for the video.. I am able to extract data from nearly 1000+ folders, in different locations. Had to use sharepoint.files. Then formatted and consolidate it. But my resultant data set is large, but less that excel limit. My problem is I need the final output in an excel. The load time for an excel is really huge. I am spending hours to get the data, for each refresh. Any easier way to export data?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Maybe check this out czcams.com/video/-XE7HEZbQiY/video.html but with that many folders and files it sounds like you should invest in a database

  • @erinfirmat36
    @erinfirmat36 Před rokem +1

    Thanks Wyn! Your videos are incredibly clear and helpful. I'm still having an issue with the "Expression Error: Column 1 of the table wasn't found" problem though - I've been stumped for days about it and I got so excited when you mentioned the fix by deleting "Changed Type", but when I Close & Apply I still get the same error popping up. Any further suggestions for this? For reference - when I linked to these files in a local folder I didn't have this problem. I'm now trying to link to the exact same files in a SharePoint folder and having this issue. The only changes I'm making in Transform Sample File is to delete the first row and promote headers. I can see the column there - name spelling and capitalization is correct - but the error persists. Any guidance would be so appreciated. Many thanks!!

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      Simplest technique is to to add 1 file at a time to folder and refresh, see if issue, repeat adding 1 file at a time until you hit the error then check to see what’s different about that file

    • @erinfirmat36
      @erinfirmat36 Před rokem +1

      Well. This is the most "is it plugged in?" strategy you could have suggested and I was absolutely sure this would not identify my problem after everything I've tried... and then I found four entirely blank files in my folder that apparently had failed to pull properly. At least 12 hours of my life gone trying to solve this... but it's working now and I'll never make the same mistake again, and in the meantime I've learned a ton about data source connections, so there's that. 😅 Thank you!

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      @@erinfirmat36 Hah, thanks for coming back to me and letting me know you found a solution 😄. There is a less "brute force" approach to identifying the issue but it's too hard to explain in this chat format... I feel a future video in the making!!

    • @erinfirmat36
      @erinfirmat36 Před rokem +1

      @@AccessAnalytic I will get my popcorn ready!

  • @Grace-ws4td
    @Grace-ws4td Před 2 lety +1

    Very clear vid, but I don't have the "sharepoint folder" option in the "Get data>From File" list - I believe it's not an option with 365 business. How do I get information from multiple files in a folder from my org's sharepoint?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks Grace, I think the following code will work even though Business Version doesn't have the SharePoint Folder button
      = SharePoint.Contents("YOURTOP LEVELFOLDERPATH/", [ApiVersion = 15])
      If you create a blank query and then replace the Source Step formula with this code it should work, then you get a list of Tables and click on the word Table next to Documents (normally around Row 6) and then keep on clicking each Table against each Folder to get to the right folder. Finally click on the double down arrow on the the first column called Content (when you can see all your files listed). That should trigger the folder consolidation.
      Note that your TOPLEVELFOLDERPATH will be something like mycomany.sharepoint.com/ with maybe one subsite name after the /. It's not the entire URL from your sharepoint folder.

  • @timodondino
    @timodondino Před 2 lety +1

    Very cool video! 😊 I just have one question. If I understand it correctly, in both ways there is your individual name/account in inside the file path like in 6:34. In this case it is not possible for other users to click on the "refresh all data" button because they have access to the files but no access to my personal file path. How can I change that? In our company many people need to have refresh the data from the power query

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Hi Timo V, you'd need to use the SharePoint option per 10:08 and ensure all users needing to refresh have access to the files/folders. You could also do it on OneDrive but that's not ideal for company reports as the OneDrive folder is removed when you leave an organisation

    • @timodondino
      @timodondino Před 2 lety

      @@AccessAnalytic Thank you. Got it so far 😊 But it seems like you can just select files in the Editor. Is it possible to choose a certain folder and then it combines all the files in that folder every time I click on refresh?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Do you mean allow the user to pick which folder? You could do this with using a parameter for the folder name and embed that into your code

  • @realpulsecoin
    @realpulsecoin Před 3 lety +1

    Great content! From Sharepoint/Onedrive will also in Excel?
    Thanks for alle the tips 👍

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety

      It should providing you have the right version of Office 365
      support.microsoft.com/en-us/office/power-query-data-sources-in-excel-versions-e9332067-8e49-46fc-97ff-f2e1bfa0cb16

    • @realpulsecoin
      @realpulsecoin Před 3 lety

      @@AccessAnalytic Great! Thanks again!

  • @ccrosetti12
    @ccrosetti12 Před 2 lety

    Thanks so much! Would this work on a Data Lake folder as well?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Don’t know sorry, not sure how you navigate to to a data lake folder. You may need to build the custom function manually.

  • @lolitsajoke77
    @lolitsajoke77 Před 3 měsíci

    Garcia got that CTE new Power

  • @DiptaGhossan
    @DiptaGhossan Před rokem

    Hey Wyn, i have my sharepoint folder synced to windows explorer and get my data from there, wont it work too? it worked for me but then my collagues tried to refresh the data, unfotunately it didnt succeed with message that the connection is under my name and not allowing her to refresh. she definitely have access to that folder as well. is that because of the getting daya from sync folder thing to explorer?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem +1

      Hi, if you look at the Source step in Power Query you’ll see it’s referring to you C:Drive copy of the SharePoint folder.
      You need to connect to the online SharePoint version if you want others to refresh it.

  • @gospelmoto2833
    @gospelmoto2833 Před rokem +1

    what office version do you use sir? Can I do what you did in ms office 2013? By the way, thanks for the tuts. Very helpful.

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      I’m using office 365 ( and the monthly release version ). You won’t be able to do this with Excel 2013. There is a limited Power Query add-in for Excel 2013

  • @melissagenthner2705
    @melissagenthner2705 Před 2 lety

    Can the files have different data? I need to combine 4 files each having a few columns I need. Should I transform instead of Combine so that I can use the Sample file for edits on each file then combine?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      For the From Folder technique the files need the same columns of data and same structure.
      If the files are very different then then import the 4 individually, get them into the same shape then append them to form one table.
      Disable the load of the 4 "helper" queries and only load the appended table to Excel or the data model

  • @vdn5716
    @vdn5716 Před 2 lety +1

    Thanks I am having issue with combine , I have two files in SharePoint folder oct-21 and dec-21 oct-21 has data from 2020 till oct and dec has only 2021 data ..when i combine both data duplication is happening for columns which are present in both files ..other than that other columns are showing correct data. Please assist on this...

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      You'd need to add a remove duplicates step

    • @vdn5716
      @vdn5716 Před 2 lety

      @@AccessAnalytic ok sir fine

  • @AnkitGupta-cn1zd
    @AnkitGupta-cn1zd Před 2 lety +1

    Hello, It was very informative video but the challenge I am facing with the share drive is, if that share drive folder is not mine but someone else shared that folder with me? Any help would be appreciated. Thank You!

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      As long as it's OneDrive for Business or SharePoint online and they have given you read access to the folder it should work ok

    • @AnkitGupta-cn1zd
      @AnkitGupta-cn1zd Před 2 lety +1

      @@AccessAnalytic Thanks a lot ! It seems I was able to access all the files once I login.

  • @A5mis
    @A5mis Před 2 lety

    I have a folder with 400k+ rows and this is very slow. I tried changing the file instead of the sample file, but they are both equally slow.
    Not sure if there's a better way to automate that?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Large files with lots of columns will be slower. How many files do you have and how long is it taking?

  • @ItsjustmeAR
    @ItsjustmeAR Před 2 lety

    I have to completely replace the files within the folder and it’s causing the PQ to break. Any tips for a solution? I believe my query is pointing to a specific file at the moment, so I will try it with the first file route. Looking for other suggestions if I can….

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      It shouldn’t break if your new files have exactly the same structure as the old files. I’d test with just 1 file in the folder and if that fails compare the column and sheet names between the one that works and the one that fails

    • @ItsjustmeAR
      @ItsjustmeAR Před 2 lety +1

      @@AccessAnalytic thanks! Will do!

  • @zackcarter3634
    @zackcarter3634 Před 2 lety +1

    What method would you use if you had to duplicate the Sample file into 2 seperate process because of the data structure and you wanted to merge and use the final combined process into each workbook?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Hi Zack I’d do 2 separate sets of From Folder and the append the results at the end and only load the appended file

    • @zackcarter3634
      @zackcarter3634 Před 2 lety +1

      @@AccessAnalytic Thank you for the reply. This logical step was what I missed in what i was trying to accomplish

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      You’re welcome Zack

  • @quentinlange2011
    @quentinlange2011 Před 3 měsíci +1

    Great video, you are referring to a video if we have a lot of columns for headers, I didn't find it. How should I do if I have a lot of columns, to not rename every one of them

    • @AccessAnalytic
      @AccessAnalytic  Před 3 měsíci

      Not sure maybe this one ?
      How to use Power Query to Combine Multiple Files that have different headings
      czcams.com/video/09tvia_8ykI/video.html
      Can you let me know which minute of the video I mention that

    • @quentinlange2011
      @quentinlange2011 Před 3 měsíci

      @@AccessAnalytic I will watch thanks. You mention it at 4:35

    • @AccessAnalytic
      @AccessAnalytic  Před 3 měsíci

      @quentinlange2011 - maybe this one then czcams.com/video/91pv9ewq_JM/video.html

    • @AccessAnalytic
      @AccessAnalytic  Před 3 měsíci

      Maybe this then czcams.com/video/91pv9ewq_JM/video.html

  • @pranaykhobragade9659
    @pranaykhobragade9659 Před rokem

    Hi Access Analytics, When I try to change share point files to share point contents, it asks for credentials and after putting it says credentials does not work. It works smoothly for SharePoint files? Any ideas why?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      No that’s not something I’ve heard of before sorry. I’d guess something to do with permissions set up on SharePoint but I don’t know

    • @pranaykhobragade9659
      @pranaykhobragade9659 Před rokem +1

      @@AccessAnalytic Thank you for your reply.

  • @stephanweaver1960
    @stephanweaver1960 Před 3 lety

    It's a real struggle from SharePoibt for 900 files with a table with 100+ rows (100k data rows) It's rulling at 900 seconds. I had to incorporate vBA to make it an incremental update to a backup master ,. For only SP records that gave changed (which is not the same as file has changed).

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety

      Yes SharePoint is a lot slower. Sometimes using SharePoint.Contents is quicker , or creating staged consolidations. Eg 1 file is a consolidation of one year, then the final consolidates the years

  • @anabiya6087
    @anabiya6087 Před 15 dny

    Thank you ! Please help me. I want to combine multiple excel. I followed your but I have faced some error

    • @AccessAnalytic
      @AccessAnalytic  Před 15 dny

      You’re welcome.
      I’d suggest posting the issue to techcommunity.microsoft.com/t5/microsoft-excel/ct-p/Excel_Cat?WT.mc_id=M365-MVP-5002589
      Or
      Https://www.reddit.com/r/excel/

  • @lauryap
    @lauryap Před 2 lety

    Hi, what if the files are kept in Sharepoint only for 3 months and I want the consolidate file to keep all data even though the first files will not be available anymore?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety +1

      Hi Laury, the data has to be there for Power Query to consolidate it. Power Query cannot store historic data. One option would be to do a one off consolidation of historic data and load to an excel table so that future refreshes reference that file.

    • @lauryap
      @lauryap Před 2 lety +1

      @@AccessAnalytic Thank you! Next step would be to automate a copy of the consolidation file as pure data, perhaps monthly (consolidate those monthly), make another copy yearly.

  • @jamesshi9993
    @jamesshi9993 Před 2 lety

    I have a problem to left-out merge two excel files from the same folder via Power Query. I merged but each row doubled. How to solve this? Thanks.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      You will have to run a remove duplicates on the key column of the file you are merging the new columns from prior to the merge

  • @jerrydellasala7643
    @jerrydellasala7643 Před 2 lety

    NOTE: In the latest Insider version (1/13/2022), the options once the folder is selected have changed. There are now 4 buttons:
    [Combine] drop-down, [Load] drop-down, [Transform Data] and [Cancel].
    Using just the [Transform Data] button will just bring in the Source and not perform the operations shown here.
    Use the [Combine] -> Combine & Transform Data option to get the transformation shown here.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      Thanks Jerry, I think that matches my screen screen at 01:36 ? That's the semi annual channel version.

  • @sachinnikale5291
    @sachinnikale5291 Před rokem

    my pc directly opens the files application it does not ask to choose any path and neither iam seeing any excel file in those folders even though i have one

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      What version of Excel are you using ( you can check via File - Account - About- Excel

  • @alibaroroh9355
    @alibaroroh9355 Před rokem

    but why when we change source folder from drive c to drive d (which have same data n folder) and we refresh its error.. how fix it? tk

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Make sure you change the Helper Queries too.. I think the Sample File might reference the drive

    • @alibaroroh9355
      @alibaroroh9355 Před rokem

      @@AccessAnalytic its doesnt work

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      @@alibaroroh9355 Too many potential problems to debug here sorry. I'd suggest posting some screenshots of where the Power Query break.
      Either to here: www.reddit.com/r/PowerBI/
      or to
      techcommunity.microsoft.com/t5/microsoft-excel/ct-p/Excel_Cat

  • @johnmarkham1912
    @johnmarkham1912 Před rokem

    Tried this with a folder of Excel files, get an error message. “Unable to connect, We encountered an error while trying to connect. Details: file contains corrupted data”.
    All the files open correctly in Excel.
    Any suggestions?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Hmmm, not sure John, are they xls rather than xlsx? Are you using Power Query in Excel or Power BI. If Excel, which version?

  • @jarmandomelgoza2149
    @jarmandomelgoza2149 Před dnem +1

    I’m running into some issues and I think it is because the files I am combining have a varying number of columns. My reports are property comparisons of income statements for a single month so the files I’m combining are other monthly reports. We close and open new locations so that explains the varying column numbers. Would you happen to have any advice on dealing with varying number of columns? Please and thank you in advance!
    P.S. Your videos are amazing!

    • @AccessAnalytic
      @AccessAnalytic  Před dnem +1

      Maybe this video: How to use Power Query to Combine Multiple Files that have different headings
      czcams.com/video/09tvia_8ykI/video.html
      But there may be better approaches, what’s in the columns that differ in number? Are there always common columns that do line up?

    • @jarmandomelgoza2149
      @jarmandomelgoza2149 Před dnem

      @@AccessAnalytic yes the first couple of them will since the centers are in alphabetical order. So it’s really just depends on the name of a new center or a closed center.

    • @AccessAnalytic
      @AccessAnalytic  Před dnem +1

      @jarmandomelgoza2149 if each column represents a different cost centre then sounds like you might need to unpivot other columns in the transform sample file step

    • @jarmandomelgoza2149
      @jarmandomelgoza2149 Před 13 hodinami

      @@AccessAnalytic yes that’s one of the steps that I undergo once I promote the centers all the way to become headers and do some other changes in between.

    • @AccessAnalytic
      @AccessAnalytic  Před 9 hodinami +1

      In that case the different column names ( if the are the unpivotted ones ) shouldn’t cause a problem.

  • @allardvanpelt6767
    @allardvanpelt6767 Před 6 měsíci

    Hi Wyn, you refer in your video to DO NOT 'use the first row ...' and you will show this in another video. Can you please forward this video? thx in advance. and thx for your clear explanation of PQ. it is a great help for me. grt Allard

    • @AccessAnalytic
      @AccessAnalytic  Před 6 měsíci

      Is that at point 4:40?

    • @allardvanpelt6767
      @allardvanpelt6767 Před 6 měsíci

      @@AccessAnalytic Hi, no starting at 4:00

    • @AccessAnalytic
      @AccessAnalytic  Před 5 měsíci

      I don’t know if I ever did a specific video on that.
      The technique is:
      Add an index column (starts at 0 )
      Add a conditional column saying IF INDEX = 0 then “Date” else [ Date Column ]
      Then remove the original date column and then Use First row as headers

    • @AccessAnalytic
      @AccessAnalytic  Před 5 měsíci

      @@allardvanpelt6767 this one... czcams.com/video/2MnbFH-Mt5E/video.html

    • @allardvanpelt6767
      @allardvanpelt6767 Před 5 měsíci +1

      @@AccessAnalytic , thx for the reply. making the query 'dynamic' was the hard part ....for me as a simple financial/business controller :-). your video was very helpful. thx again.

  • @JuanDiazSilvermyst
    @JuanDiazSilvermyst Před 2 lety

    So how do we add headers like "Authors, tags, file size?" ?

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      If you go to the Removed Other Columns step on the consolidation query and click the cog next to it you can add back in certain fields including Attributes

  • @meehere
    @meehere Před 3 lety

    I don't see the option "From SharePoint Folder" in my Office 365. Is that because its still in beta version?

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety +1

      Not all versions of O365 contains the SharePoint folder connector unfortunately. I've been campaigning for this to be fixed but forgot to mention that here sorry. What version do you have?

    • @meehere
      @meehere Před 3 lety

      @@AccessAnalytic I am on version 2120 (Build 13628.20380)

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety

      Under File > Account look to see what it says up the top right. Mine says
      Subscription Product
      Microsoft 365 Apps for enterprise

    • @meehere
      @meehere Před 3 lety

      @@AccessAnalytic Thanks for checking. Perhaps that explains the difference. Mine is Microsoft 365 Apps for Business

    • @AccessAnalytic
      @AccessAnalytic  Před 3 lety +1

      Ah shame, I’ve raised a user voice item, please vote excel.uservoice.com/forums/304921-excel-for-windows-desktop-application/suggestions/42842856-add-sharepoint-folder-connector-to-m365-business-a

  • @OviWanKeno9i
    @OviWanKeno9i Před 2 lety

    Combine and Transform gives me an error. I have 70 files to merge and get a few different parameters to pick from. Each file has 1-15 tabs or so.
    I made the structure the same, so it should be okay.

    • @AccessAnalytic
      @AccessAnalytic  Před 2 lety

      You can only easily combine 1 sheet from each file, it gets complicated to do multiple sheets. There's often an issue where the the sheet name of one file is slightly different or the column heading has a space or something simple but easy to miss

  • @DiptaGhossan
    @DiptaGhossan Před rokem

    When my load failed with message "[Expression.error] They key didnt match any rows in the table, what does it mean?

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      One of your files might have an inconsistent sheet name or headings.
      I’ve also seen odd messages when files have #Ref errors in them

    • @DiptaGhossan
      @DiptaGhossan Před rokem +1

      @@AccessAnalytic found it. it seems that my two files in the folder have different table names and thus when my source file take Table, it doesnt recognize the name of second table. apparently i can fix it with deleting the expression that calls out table name/sheet name with 0 in the transform file

    • @AccessAnalytic
      @AccessAnalytic  Před rokem

      Glad you solved it