Introduction
In today’s data-driven world, organizations rely heavily on tools that transform raw data into valuable insights. One of the most powerful solutions for this purpose is Microsoft Power BI. It enables analysts and businesses to create interactive dashboards and reports that support informed decision-making. One of the most powerful tools for this purpose is Microsoft Power BI. It allows analysts and businesses to create interactive dashboards and reports to support decision-making.
This article provides a step-by-step guide on how to :
- Create a Power BI workspace
- Upload and publish a report
- Generate an Embed code
- Embed the report into a website using an iframe
What is Power BI? This is a business analytics tool developed by Microsoft that enables users to transform, clean data, build interactive visualizations, and connect to multiple data sources*Excel*.
What is Power BI Publishing? Publishing a Power BI report involves moving your report from Power BI Desktop to the Power BI Service cloud platform.
Prerequisites
Key things to consider before you start:
- Power BI Desktop installed
- A Power BI account
- A complete report
Step 1: Create a Workspace in Power BI Service
A workspace is a shared environment where you store datasets, reports, and dashboards.
Tutorial
- Go to Power BI Service: https://app.powerbi.com
- Log in using your account
- On the left sidebar, click Workspaces
- Click + New workspace
- Enter: .Workspace name .Description
- Click Save
Step 2: Prepare Your Report
You should make sure that your report is: Clean and well-structured, has meaningful visuals, uses proper relationships, and DAX measures.
Step 3: Publish the Report to Power BI Service
Tutorial
- Open your report in Power BI
- Click File → Publish → Publish to Power BI
- Sign in if prompted
- Select your workspace created earlier
- Click Select
Once uploaded, you’ll see a confirmation message.
Step 4: Verify the Report in Power BI Service
- Head back to Power BI Service
- Open your workspace
- Locate your report under Reports
- Click to open and confirm everything is working
Step 5: Generate the Embed Code
Power BI allows you to embed reports using Publish to Web or secure embedding.
Note: Publishing to the web makes it easily accessible, and anyone with the link can view it.
Tutorial
- Open your report in Power BI Service
- Click File → Embed report → Publish to web
- Click Create embed code
- Confirm the warning
- Copy the generated iframe code
Step 6: Understanding the IFrame Code
The embed code will look like this:
<iframe width="800" height="600" src="https://app.powerbi.com/view?r=..." frameborder="0" allowFullScreen="true"></iframe>
Key Attributes:
.Width & height: Control size
.Src: Contains report URL
.Frameborder: Removes border
.AllowFullScreen: Enables full-screen mode
Step 7: Embed the Report into a Website
.You can embed this iframe into:
- HTML websites
- Blogs (Dev.to, Medium)
- Web apps
Step 8: Test Your Embedded Report
After embedding:
.Open your website in a browser
. Check: Report loads correctly, Filters and visuals work, and Responsiveness.
conclusion
Publishing and embedding Power BI reports is an essential skill for any data analyst. It allows you to transform your work into a shareable and interactive experience accessible from anywhere.









Top comments (0)