Export a paginated report for each row in an Excel Online table or SharePoint list

With Power Automate, you can automate exporting and distributing Power BI paginated reports to various supported formats and scenarios. In this article, you use a Power Automate template to automate setting up recurring exports of single or multiple paginated reports. You export them in a desired format for each row in an Excel Online table or SharePoint Online list. You can distribute the exported paginated report to OneDrive for work or school or a SharePoint Online site, or email it via Office 365 Outlook.

Screenshot that shows how to export a paginated report by using an Excel Online table.

Each row in your Excel Online table or SharePoint Online list can represent a single user to receive a paginated report on a subscription basis. Or instead, each row can represent a unique paginated report you wish to distribute. Your table or list requires a column that specifies how to distribute a report, whether OneDrive, SharePoint Online, or Outlook. The Power Automate flow uses this column in its Switch statement.

Looking for other Power Automate templates for Power BI paginated reports? See Export Power BI paginated reports with Power Automate.

Prerequisites

To follow along, make sure you meet these criteria:

  • You can publish to My Workspace, or you have at least a Contributor role for any other workspace.
  • Access to the standard connectors in Power Automate, which come with any Office 365 subscription.
  • If you're using an Excel Online table, it needs to be formatted as a table in Excel. See Create a table to learn how.

Export a paginated report for each row in a table or list

Note

The following steps and images show setting up a flow using the Export a Power BI paginated report for each row in an Excel Online table template. You can follow the same steps to create a flow using the Export a Power BI paginated report for items in a SharePoint Online list template. Instead of an Excel Online table, a SharePoint Online list will contain the information about how to export the paginated report.

  1. Sign in to Power Automate flow.microsoft.com.

  2. Select Templates, and search for paginated reports.

    Screenshot of Power Automate templates for Power BI paginated reports.

  3. Select the Export a Power BI paginated report for each row in an Excel Online table or Export a Power BI paginated report for items in a SharePoint Online list template. Make sure you're signed into Excel Online, Power BI, OneDrive for work or school, SharePoint Online, and Office 365 Outlook. Select Continue.

    Screenshot that shows the applications that the selected flow connects to.

  4. To set the Recurrence for your flow, select an option in Frequency and enter a desired Interval value.

    Screenshot that shows where to select recurrence for your flow.

  5. (Optional) Select Show advanced options to set specific Recurrence parameters, including Time zone, Start time, On these days, At these hours, and At these minutes.

    Screenshot that shows the option to select advanced recurrence options.

  6. In the Location box, select OneDrive for work or school or the SharePoint Online site where your Excel Online table or SharePoint Online list is saved. Then, select the Document Library from the dropdown list.

    Screenshot that shows where to select the location of the Excel Online table.

  7. Select the Excel Online file or SharePoint Online list in the File box. Select the name of the table or list from the dropdown list in the Table box.

    Select the Excel Online file and name of the table.

    Tip

    See Create a table to learn how to format data as a table in Excel.

  8. Initialize a variable to use for the file name. You can keep or modify the default values for Name and Value, but leave the Type value as String.

    Screenshot that shows the Default output file name dialog box.

  9. In the Workspace box, select a workspace in a reserved capacity. In the Report box, select the paginated report in the selected workspace you want to export. If you set Enter a custom value from the dropdown list, you can set Workspace and Report to equal a column in your Excel Online table or SharePoint Online list. These columns should contain Workspace IDs and Report IDs, respectively.

  10. Select an Export Format from the dropdown list, or set it equal to a column in your Excel Online table containing desired export formats. for example PDF, DOCX, or PPTX. Optionally, you can specify parameters for the paginated report. Find detailed descriptions of the parameters in the connector reference for the Power BI REST API.

    Screenshot that shows the Export to File for Paginated Reports dialog box.

  11. In the Value box, enter a name for the paginated report once it's exported. Be sure to enter a file extension. You can set it statically, for example .pdf, .docx, or .pptx. Or, set it dynamically by selecting the column in your Excel table corresponding to your desired export format.

    Screenshot that shows where to select the name of the report and a file extension.

  12. In the Switch section, populate the On box with the column in your Excel Online table corresponding to the desired method of delivery: OneDrive, SharePoint, or Email.

    Screenshot that shows the Switch section where you populate the On box with the column in your Excel Online table.

  13. In the Case, Case 2, and Case 3 sections, enter the values present in the Excel Online table column selected in the previous step.

    Screenshot that shows where to enter values for Case, Case 2, and Case 3.

  14. In the case where you're saving your paginated report to OneDrive, select the Folder Path where it should be saved.

    Screenshot that shows the case where you're saving to OneDrive.

  15. In the case where you're saving your paginated report to SharePoint Online, enter the Site Address and Folder Path where it should be saved.

    Screenshot that shows the case where you're saving your paginated report to SharePoint Online.

  16. In the case where you're sending your paginated report as an email via Outlook, populate the To, Subject, and Body boxes. These boxes can contain static content, or dynamic content from your Excel Online table or SharePoint Online list. Power Automate attaches your paginated report to this email automatically.

    Screenshot that shows the case where you're sending your paginated report as an email via Outlook.

  17. When you're done, select New step or Save. Power Automate creates and evaluates the flow, and lets you know if it finds errors.

  18. If there are errors, select Edit flow to fix them. Otherwise, select the Back arrow to view the flow details and run the new flow.