How to Publish a Power BI Report and Embed it in a Website
Source: Dev.to
Introduction
Power BI is a Microsoft tool widely used for advanced data analysis. It lets users transform raw data into interactive dashboards and reports that can be used to derive insights and support decision‑making.
Publish a Power BI Report
From Power BI Desktop
- Open your report in Power BI Desktop.
- If you are not signed in, click Sign in in the top‑right corner and enter your credentials.
- In the ribbon, click Publish.
- In the pop‑up, search for your workspace name, select it, and click Select.
Direct upload on Power BI Service
- Go to the Power BI Service and sign in.
- In the left panel, click Workspaces.
- Select your workspace (or search for it).
- Click Import → Report, Paginated report or Workbook → From this computer.
- Browse and select your file.
- The report will appear in the workspace.
Embed the Report in a Website
- In Power BI Service, navigate to your workspace and open the report.
- Choose File → Embed report → Publish to web (public).
- Click Create embed code.
- Copy the generated HTML
<iframe>code.
<!-- Paste the iframe code here -->- Open your website’s HTML file and paste the iframe where you want the report to appear.
- Save the file and refresh the page. The report will now be accessible on your website.
Embedding Power BI reports uses simple HTML iframes, making integration straightforward and allowing you to turn reports and dashboards into interactive web experiences. This capability enhances the accessibility of your insights.