List all the files in a folder and subfolders with Power Query

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 28

  • @sebfromgermany3819
    @sebfromgermany3819 2 роки тому +6

    Thanx for sharing. It’s a really powerful tool which I use regularly. Good that you opened up the Attributes column - I never looked into it.
    Your column “full file path” is becoming magic in an Excel table if you add a column where you combine it with the excel hyperlink function. This way you can open any file without leaving excel.
    Cheers Seb

  • @martyc5674
    @martyc5674 2 роки тому +1

    Brilliant Mark- Folder.Content => Excellent

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 роки тому +1

      Yes, Folder.Contents is useful. It’s one of the functions which isn’t available in the user interface.

  • @axeemx
    @axeemx 2 роки тому +1

    Thanks Mark! This channel is really good for PQ enthusiasts. This channel deserves more subscribers. Kudos 👍🏻👍🏻💪🏻💪🏻

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 роки тому +1

      I would love more subscribers… maybe one day. 😀

    • @axeemx
      @axeemx 2 роки тому +1

      @@ExcelOffTheGrid of course. you will get more with your quality tutorials.

  • @franciscocelaya6616
    @franciscocelaya6616 Рік тому +1

    Excellent tutorial. Thanks for sharing!

  • @wayneedmondson1065
    @wayneedmondson1065 2 роки тому +1

    Awesome tips Mark! I've been using this feature for some time and it is very useful. Thanks for the demo. Thumbs up!!

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 роки тому +1

      Thanks Wayne, I appreciate the encouragement. 😀

  • @stefanolarghi4860
    @stefanolarghi4860 Рік тому +1

    The best teacher!!!

  • @Patiencelad
    @Patiencelad 2 роки тому +1

    Great info. Thanks very much!

  • @Sumanth1601
    @Sumanth1601 2 роки тому +1

    Great content 😊 Subscribed

  • @ahmed007Jaber
    @ahmed007Jaber 2 роки тому +1

    Thank you for this. this is superb!
    possible to move files around using excel? if given the path to the old and new paths???

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 роки тому

      Yes, but you will need a bit of VBA magic to move them. I’ve got a guide here to deal with that: exceloffthegrid.com/vba-code-to-copy-move-delete-and-manage-files/

    • @ahmed007Jaber
      @ahmed007Jaber 2 роки тому

      @@ExcelOffTheGrid thank u for this
      Wish there was a way in power query
      Looking for ideas to do it using tables sith old and new paths

  • @zvikalevin6868
    @zvikalevin6868 Рік тому +1

    Excellent video, is it also possible to extract file attribute like owner, thanks

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  Рік тому

      I don’t think that is one of the attributes available.

  • @MrSamahiji
    @MrSamahiji Рік тому

    Hi, I tried this idea, but came across the issue of max file length. I need to have the pdf files only. Is it possible to filter out all other folders in the source so the query doesn't need to scan other lengthy folders?

  • @sumit147601
    @sumit147601 8 місяців тому +1

    hi, would anyone be able to explain how to get a folder structure without the files? I currently have a share I woudl like to get a folder structure for. Thanks in advance

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  8 місяців тому

      In Power Query change the code in the source step from Folder.Files to Folder.Contents.

    • @sumit147601
      @sumit147601 8 місяців тому

      @@ExcelOffTheGrid thank you for getting back to me. I tried this and it still shows the full content of the folder including files. I am trying to get just the folder levels. Another great help would be to limit the level of folder to list.
      Thank you in advance 👍🏻

  • @MeysamMoradi
    @MeysamMoradi Рік тому

    1:06 how can we do this on macos excel ?