web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Export Power BI Report...
Power Automate
Suggested Answer

Export Power BI Report as PNG and Insert into Excel via Power Automate

(0) ShareShare
ReportReport
Posted on by

I would like to know if it's possible to export a Power BI report as PNG and then insert each PNG image into a separate worksheet within an Excel workbook stored in a SharePoint library, using Power Automate.

 

Is this achievable with the available tools and connectors in Power Automate? If so, could you please guide me on the best approach to implement it?

Categories:
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    807 Super User 2026 Season 1 on at
    You want to export a Power BI report as PNG images and insert each image into a new worksheet in an Excel file stored in SharePoint using Power Automate. Yes, this is possible using Power BI export action and Excel Office Scripts in Power Automate.
    1. use trigger "Manually trigger a flow" or "Recurrence"
    2. add "Export to File for Power BI Reports" action
        a. choose workspace and report
        b. format = PNG
        c. in "Pages" enter one page at a time (use loop to export multiple pages)
    3. add "Apply to each" loop if exporting multiple pages
        a. inside loop, export each page as PNG
        b. get base64 of PNG file from export output
    4. create Office Script in Excel Online (go to Automate tab > New Script), paste this code:
        function main(workbook: ExcelScript.Workbook, base64Image: string, sheetName: string) {
          let sheet = workbook.addWorksheet(sheetName);
          const image = sheet.addImage(base64Image);
          image.setPosition(0, 0);
        }
    5.in Power Automate, add "Run script" action
        a. location = SharePoint site
        b. file = your Excel file
        c. script = the one you created above
        d. pass parameters:
        base64Image = output of PNG export
        sheetName = use dynamic name like "Page 1", "Page 2" etc
    6. repeat step 5 inside the loop for each PNG
    7. flow will add one image per worksheet in the Excel file stored in SharePoint
    *Premium license is required for Power BI export and Excel script actions.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard