Introduction
Power BI is a powerful business intelligence and data visualization tool developed by Microsoft that enables users to transform raw data into meaningful insights through interactive reports and dashboards. It is widely used by data analysts, business professionals and organizations to monitor performance, uncover patterns and support data-driven decision-making.
This article provides a step-by-step guide on how to publish a Power BI report and embed it into a website. It covers the entire process from creating a workspace to generating an embed code and integrating the report into a web page.
Through the Power BI Service, users can make their reports accessible online and even embed them into websites, allowing for broader accessibility and seamless integration into digital platforms.
*Publishing a Power BI report involves the following key steps:
*
- Creating a workspace in Power BI Service
- Uploading and publishing your report
- Generating an embed code
- Embedding the report on a website
1: Creating a Workspace
A workspace in Power BI Service is used as a collaborative environment where reports, dashboards and datasets are stored and managed. Before publishing your report, you need to create a workspace where it will reside.
How to Create a Workspace
- Open your web browser and navigate to the Power BI Service (https://app.powerbi.com)
- Sign in using your Microsoft account
- On the left-hand navigation pane, locate and click on Workspaces
- Click the Create a workspace button
- Enter the following details:
- Workspace Name (e.g., Sales Dashboard Workspace)
- Description (optional but recommended)
- Configure advanced settings if necessary (optional)
- Click Save
2: Uploading and Publishing Your Report
After creating your workspace, the next step is to upload and publish your Power BI report.
Publishing from Power BI Desktop
- Open your .pbix file in Power BI Desktop
- Review your report to ensure all visuals and data are accurate
- Click the Publish button located in the top-right corner
- If prompted, sign in to your Power BI account
- Select the workspace you created earlier
- Click Select to confirm
3: Generating the Embed Code
Power BI allows users to embed reports into websites using an iframe. This is done through the Publish to web feature.
Note that:
Using Publish to web makes your report publicly accessible. Anyone with the link can view it, so avoid using this option for sensitive or confidential data.
Steps to Generate the Embed Code
- Open your report in Power BI Service
- From the top menu, click File
- Select Embed report
- Click Publish to web
- A prompt will appear—click Create embed code
- Power BI will generate:
- A public URL
- An iframe embed code
- Copy the iframe code for use on your website
This code allows your report to be displayed interactively on any web page.
4: Embedding the Report on a Website
Once you have the embed code, the final step is to integrate it into a website.
This iframe acts as a container that displays your Power BI report within a webpage.
How to Embed the Report
Open your website’s HTML file (e.g., index.html)
Identify where you want the report to appear
Paste the iframe code into that section of the HTML
Save the file
Open the file in a browser or deploy it to a hosting platform
Once embedded, the report will appear directly on the webpage and users will be able to interact with it just as they would in Power BI Service.





Top comments (0)