Forum Discussion

Raki39's avatar
Raki39
Helper I
5 months ago
Solved

Trigger Power Automate from Power BI report button to export report data to Excel (with formatting)

Hi everyone, I am trying to implement a feature in a Power BI report (.pbix) where users can click a button and automatically export the report data toexcel format. Scenario: * The Power...
  • v-sgandrathi's avatar
    5 months ago

    Hi Raki39,

     

    This is the expected behavior. When a Power Automate flow is triggered from Power BI, it uses the flow owner's connections rather than the user's identity who triggered it. As a result, actions like Create file in OneDrive will always write to the OneDrive linked to the flow owner, so files are created in your OneDrive even if other users run the report.

    Currently, Power Automate does not allow the OneDrive or SharePoint connection to switch dynamically based on the triggering user. This means the flow cannot create files in each user's personal OneDrive when using a shared flow.

    To address this, a common solution is to store the generated file in a central SharePoint document library and provide access to the user who triggered the export. You can identify the user (for example, using Power BI visual context or user information passed to the flow) and then share the file link or send it automatically. This lets each user access their exported data without relying on the flow owner's OneDrive.

    This approach keeps the storage location consistent while enabling users to retrieve their exported files from the report.

     

    Thank you and Contiue using Microsoft Fabric Community Forum.