Extracting Multiple Tables From A Power Query Combine Folder Source

Поделиться
HTML-код
  • Опубликовано: 3 дек 2018
  • One of the amazing data connectors in Power Query is the ability to combine files from a folder. However, what happens when those files each contain multiple tables you'd want to combine? This video covers a simple technique to extract multiple tables from each file, using the folder combine data connector.
    LET'S CONNECT! 🧑🏽‍🤝‍🧑🏽 🌟
    -- / havensbi
    -- / reidhavens
    -- / havensconsulting
    HAVENS CONSULTING PAGES 📄
    Home Page - www.havensconsulting.net
    Blog - www.havensconsulting.net/blog-...
    Blog Files - www.havensconsulting.net/blog-...
    Files & Templates - www.havensconsulting.net/files...
    Consulting Services - www.havensconsulting.net/consu...
    Contact & Support - www.havensconsulting.net/conta...
    EMAIL US AT 📧
    info@havensconsulting.net
    #PowerBI #PBI #microsoftpowerbi #HavensConsulting #powerplatform #microsoft #businessintelligence #datascience #office #data #digitaltransformation #dataanalytics #tableau #excel #powerapps #datavisualization #dashboard #sharepoint #python #bi #analytics #cloud #azure #bigdata #sqlserver #software #sql #dynamics #dataanalysis #yammer #microsoftpowerbi #onedrive #machinelearning #bhfyp #powerbidesktop
  • НаукаНаука

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

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

    i have been struggling with this for the past two days... i kept making new queries, and it was cluttering up the project with all these "Parameters" i didnt want... i am so glad i found your video! i was pulling my hair out in frustration.

  • @nhattruong7651
    @nhattruong7651 4 года назад +1

    Thank you so much, Reid! This is exactly what I am looking for. Always be a fan of your channel.

  • @3TT141593
    @3TT141593 2 года назад +1

    Thank you. This is exactly what I needed.

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

    Thank you Reid for the video! 👍
    Had the opportunity to use this recently because dataflows was not an option.
    It immediately eliminate this error - Query references other queries or steps, so it may not directly access a data source.

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

    thanks for this video! this was exactly what i was looking for!

  • @heikowingels3023
    @heikowingels3023 4 года назад +1

    Reid, thanx, perfect! Could copy that one for my current project

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

    Thank You SO MUCH!!! From BRAZIL!

  • @sanjeevsoni6793
    @sanjeevsoni6793 4 года назад

    Brilliant Trick!! Reid thanks very much!!

  • @alfredlear4141
    @alfredlear4141 2 года назад

    😅🤣😅😅🤣😂😅🤣😂
    I feel like an idiot for not trying this!
    Many thanks, much appreciated 🙏

  • @engaab1982
    @engaab1982 2 года назад

    Thanks , that what I am looking

  • @coleflohr1748
    @coleflohr1748 2 месяца назад

    Thanks, was missing the trick of selecting the folder instead of a table!

  • @illmtoloko
    @illmtoloko 3 года назад

    5:03 is there a way to Expand all of columns at once? (in case we have multiple columns with tables on it, like importing xml files)

  • @girishkumarkp7779
    @girishkumarkp7779 3 года назад

    How would you convert the created Power BI query to an excel. As explained in video. Once you finish creating the Power BI in case if i want to view it in a single excel how do it Thanks!

    • @HavensConsulting
      @HavensConsulting  3 года назад

      If you want to use this query from Power BI, into a query in the query editor in Excel. You can right click -> copy in Power BI on the query. Then go to the query list in Excel Power Query, right click -> paste and it'll copy the query over. Also Excel has a folder combine option, you can just start from there.

  • @mjboos69
    @mjboos69 4 года назад

    Great video! Follow-up question however. I have a very similar situation however, my two sets of data I want to capture are actually in the same .csv file / same worksheet instead of two separate tables (within the same worksheet file). In other words I have FileA and I want the first 5 columns to go to USER table, and the next 10 columns to go to PAGE_VIEWS. For FileB, first 5 columns to go to the same USER table, and the next 10 columns to go CLICK_VALUES. For FileC, first 5 columns to go to USER table, and the next 10 columns to go to ASSESSMENT_RESULTS. And so on. Hopefully that makes since. Only difference I see is in your example the data is in two different tables where as mine in in the same. Can the combine feature be used in this scenario? Thanks!

    • @HavensConsulting
      @HavensConsulting  4 года назад

      Hi Michael, this might be best solved via an email. If you can provide a file I'd be happy to take a look. info@havensconsulting.net

  • @mesneda181
    @mesneda181 3 месяца назад

    can I do this for a folder in onedrive for business?

    • @HavensConsulting
      @HavensConsulting  3 месяца назад

      learn.microsoft.com/en-us/power-query/connectors/sharepoint-folder
      Absolutely :)

  • @tomasdolejsi2365
    @tomasdolejsi2365 2 года назад

    Hello, thanks for a very helpful video. Well done! I would like to ask - would you know why this approach does not work when loading data in a dataflow? I get to "Combine Files" window (2:38) but I am not able to select the folder itself. It can not be selected, therefore I can not process further. Strange thing is that this approach works when normally loading data (not in dataflow). Could you please help? Thanks a lot!

    • @HavensConsulting
      @HavensConsulting  2 года назад +1

      The feature parity between Power Query Online (dataflows) and Power BI desktop isn't always exact. Since they're actually built on different coding platforms. I'll have to look into why it isn't available in Power Query online.

    • @tomasdolejsi2365
      @tomasdolejsi2365 2 года назад

      @@HavensConsulting Thank you so much for your quick answer. I have just been thinking... would this approach work? 1) do the job in desktop (get data -> folder -> combine and transform, etc.), 2) copy the M code from desktop, 3) paste this code into dataflow "blank query" source. Honestly I am good at DAX, but M code is a all greek to me so I am not sure if this is supposed to work... ?

    • @HavensConsulting
      @HavensConsulting  2 года назад +1

      @@tomasdolejsi2365 that's actually a solution that should work! You can definitely copy/paste code from desktop to PQ online and it should just work :)

    • @tomasdolejsi2365
      @tomasdolejsi2365 2 года назад

      ​@@HavensConsulting that's great, I am going to definitely test it asap :) I know this might be a little bit more off-topic but how would you approach a situation where your folder contains source files for 2 different reports? So you need to "filter" the files by a file name.
      Let's imagine our folder contains:
      report1_2020.mdb, report1_2021.mdb and
      report2_2020.mdb, report2_2021.mdb?
      Report 1 and Report 2 are different reports. Each year a new file is created for each report. The data structure is the same. And you want to make the solution dynamic... (so whenever a new file is created it is automatically added to dataflow as a source). So I am literally talking about "filtering" in a folder by contained strings in a filename. Any thoughts are much appreciated! Thank you.

    • @HavensConsulting
      @HavensConsulting  2 года назад

      @@tomasdolejsi2365 in the query before it combines the files you have a list of the files in that folder. The column with the file name in it you can filter to contains or does not contain to focus on the files you want to combine

  • @SaniGarba
    @SaniGarba 5 лет назад

    Thanks.

    • @SaniGarba
      @SaniGarba 5 лет назад

      Is it possible to extract a parameter/function that can be reused on other similar folders named Data1, Data2, etc? Thanks