Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello everybody.
I wonder if anyone knows if it is possible to subdivide an Excel file into several sheets from Power Query.
I mean, the result of the query to be loaded in different sheets, according to a segmentation.
I would like to illustrate this with an example:
We have a file in which there is information of 15 clients, the idea would be that the result of the query be separated in 15 sheets, according to the name of the "Client".
The number of clients could be variable.
Thank you very much!
Regards
Pablo
Solved! Go to Solution.
Hi @pmaurizi
To my knowledge, Power Query is not a good tool to do this task. In Power Query, queries cannot be created automatically or dynamically according to a dynamic value from another query. The queries are pre-defined by you, so the number of queries is fixed. The number cannot be changed according to the data change in a single query.
I found some articles about using Python or Power Automate to complete this task. Hope they will be helpful:
How To Split An Excel File Into Multiple Files Using Python - Python In Office
Solved: Split an Excel file into several sheets - Power Platform Community (microsoft.com)
How to Export filtered data to Excel from Power BI... - Power Platform Community (microsoft.com)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @pmaurizi
To my knowledge, Power Query is not a good tool to do this task. In Power Query, queries cannot be created automatically or dynamically according to a dynamic value from another query. The queries are pre-defined by you, so the number of queries is fixed. The number cannot be changed according to the data change in a single query.
I found some articles about using Python or Power Automate to complete this task. Hope they will be helpful:
How To Split An Excel File Into Multiple Files Using Python - Python In Office
Solved: Split an Excel file into several sheets - Power Platform Community (microsoft.com)
How to Export filtered data to Excel from Power BI... - Power Platform Community (microsoft.com)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
27 | |
12 | |
12 | |
11 | |
9 |
User | Count |
---|---|
53 | |
28 | |
17 | |
14 | |
13 |