Forum Discussion

abraham21's avatar
abraham21
New Member
1 year ago
Solved

How to Automate Export Power BI Report (.pbix) from Workspace to SharePoint

Hi Community, I am looking for guidance on how to automate export of a PowerBI report from workspace as a .pbix file into SharePoint. Here are my specific questions: How can I automate the e...
  • ibarrau's avatar
    ibarrau
    1 year ago

    Hi. Let me start saying you can develop the pbix hosted at the sharepoint. That way all changes are in history version. Even better if you use a repository like github to keep track of all changes ever made for the pbix file.

    If you really want to make backups, I would suggest this video: https://www.youtube.com/watch?v=RbMFQNthlGM

    If you want to handle it by code, you can change the way the refreshes are run. Create a code to export the current report and then run refreshes with the Power Bi Rest API. This is the one for exporting: https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-report-in-group

    You can use python library like simplepbi to make the export easier or just use any language code with coding skills. You probably can do that with Power Automate too.

    I hope that helps,