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

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 29

  • @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

  • @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.

  • @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.

  • @franciscocelaya6616
    @franciscocelaya6616 Год назад +1

    Excellent tutorial. Thanks for sharing!

  • @GlennandJoKerr
    @GlennandJoKerr Месяц назад

    Great video. Very helpful. Is there a way to also get page number as part of the attributes information of the files?

  • @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.

  • @MeysamMoradi
    @MeysamMoradi Год назад

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

  • @sumit147601
    @sumit147601 9 месяцев назад +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  9 месяцев назад

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

    • @sumit147601
      @sumit147601 9 месяцев назад

      @@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 👍🏻

  • @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?