Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Is there any way to use Python or Power Query to export matrix data with different filters into one Excel file with different sheets?
Solved! Go to Solution.
Hi @amirhz ,
You can try to export the data to one excel file first, then refer the following links to split the excel sheet into multiple sheets base on different criterias.
1. By VBA scripts:
Export Data From Power Query into Multiple Excel Sheets based on criteria
2. By Python:
Python - How to filter out data in Excel
How To Split An Excel File Into Multiple Files Using Python
Best Regards
One more alternative is to use SeekTable where you can create a dashboard (configure it for several matrixes) and then activate export to Excel for that dashboard, online demo is here ("Export" menu): http://demo.seektable.com/dashboard/00f7e942fe7e420694bf478ae659ea58
Hi @amirhz ,
You can try to export the data to one excel file first, then refer the following links to split the excel sheet into multiple sheets base on different criterias.
1. By VBA scripts:
Export Data From Power Query into Multiple Excel Sheets based on criteria
2. By Python:
Python - How to filter out data in Excel
How To Split An Excel File Into Multiple Files Using Python
Best Regards
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
3 |