Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Felpan
Frequent Visitor

Budgeting process workflow

Hi I am looking for some ideas/videos/blogs to automate my workflow. My company use microsoft 365, but powerapps is not a option.

I will explain how the process is now:
1. Export a masterfile
2. Split masterfile (using vba code, not my code). Is this possible to do with Power query?

3. Exported and splittet excel files moves to different folders in a Sharepoint library. One excel file represent one subdeparterment. In total I would estimate 600-700 excel files. The files are placed in a shared folder so the manager can input data. So a head department would have like 6-8 folders, one for every subdepartment, with 6-8 files where manager have to input data.

4. Collect all the excel files to create one masterfiles for every headdepartment, one query for every subdepartment. To do this I have to manual update multipe to link to the right folder. 


1 ACCEPTED SOLUTION
Keezz
Helper I
Helper I

PowerQuery may be able to help but not solve everything.

  • The splitting of a master file is better left to VBA
    Powerquery can not create new worksheets or workbooks automatically.
    And it certainly can not create folders
  • Collecting the data is where PowerQuery can help
    • It can get all the folders and filenames with SharePoint.Files()
    • It can consolidate all excell files into one big dataset
    • Do analysis, transform the data
  • Distributing the results is better left to VBA or PowerScript, again, powerquery can not automatically create new files or folders.
  • I am not familiar with the PowerBI capabilities to create dashbards and only show the data for a particular department, but I am pretty sure it can be done.
    But you would probably need a corporate license for Power BI though.

View solution in original post

4 REPLIES 4
Keezz
Helper I
Helper I

PowerQuery may be able to help but not solve everything.

  • The splitting of a master file is better left to VBA
    Powerquery can not create new worksheets or workbooks automatically.
    And it certainly can not create folders
  • Collecting the data is where PowerQuery can help
    • It can get all the folders and filenames with SharePoint.Files()
    • It can consolidate all excell files into one big dataset
    • Do analysis, transform the data
  • Distributing the results is better left to VBA or PowerScript, again, powerquery can not automatically create new files or folders.
  • I am not familiar with the PowerBI capabilities to create dashbards and only show the data for a particular department, but I am pretty sure it can be done.
    But you would probably need a corporate license for Power BI though.
Anonymous
Not applicable

Hi @Felpan 

Based on your descriotion, you need to split some file, can  you provide some sample  data and the output that wht is the format you want to get after spliting?  based on the sample data can provide moe suggestion for you.

 

Best Regards!

Yolo Zhu

Thanks, but I can not share company data. But if you create a ID column and some dummy value, how do you split this in to two query?

IDValue
1100
2200
Anonymous
Not applicable

Hi @Felpan 

Thanks for your quick reply, and in power query, it cannot split the value to multiple querises based on one table.

You can refer to the following similar thread.

Export n files in folder as n different query - Microsoft Fabric Community

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.