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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RPYee
Frequent Visitor

One paginated report -1 dataset - export 2 tables to one Excel file with 2 worksheets

I have a reporting process that was once done, very manually, by pulling raw data, copying it to Excel (full detail table), then creating a pivot table on a new worksheet (summarized matrix). The file is saved containing the two worksheets and is emailed to my audience as one attached Excel file.  I'm trying to automate this process.

 

I've created a paginated report in Report Builder that has both of these elements showing on the page, one table and one matrix.  When I run the report, it gives me 1228 pages for the complete detail table, then a bit of open space and the summary matrix table shows below, for a total of 1974 pages.  I want to export the table to a "Detail" worksheet and the matrix to a "Pivot" worksheet in one Excel file.  What is the best way to accomplish this end result?  

2 REPLIES 2
Anonymous
Not applicable

Hi, @RPYee 
Thanks for reaching out to the Microsoft fabric community forum.
 

You can first try the following blog, which introduces how to export Power BI reports to PDF/PPT/PBIX using PowerShell and send them as email attachments. You can modify the export format to xlsx based on this blog. The reason it is not mentioned is that the export API only supports paginated reports:

vlinyulumsft_0-1740454365413.png

For details, please refer to:

Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn

PowerShell Scripts to Export Power BI Reports to P... - Microsoft Fabric Community

 

2.Secondly, you can also try using simple R/Python scripts to schedule automatic data exports from Power BI:

vlinyulumsft_1-1740454365414.png

For details, please refer to:

Schedule Automated Data Exports from Power BI usin... - Microsoft Fabric Community

 

3.Finally, we recommend using Power Automate to automate the process of exporting Power BI reports to Excel and sending them via email:

vlinyulumsft_2-1740454393427.png

 For details, please refer to:

Export and email a report with Power Automate - Power BI | Microsoft Learn

How to Export Data from Power BI to Excel Using Power Automate

 

 

Best Regards,

Leroy Lu

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

Thanks for your response. I should have included that we are currently using Power Automate and have been successful in creating and sending Excel files via email.  I just haven't figured out how to put two result sets into one Excel file.  My customers have been getting all the data in one file for years.  I hate to have to send two attachments because I'm changing over to Power BI.  

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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