Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.