Introduction
Microsoft Power BI is a powerful business intelligence tool used to transform raw data into interactive dashboards and reports. Once a report is built in Power BI Desktop, the next step is to publish it to the Power BI Service and embed it into a website so others can view and interact with it.
This article walks through the complete process:
• Creating a workspace
• Publishing a report
• Generating embed code
• Embedding the report into a website
• Uploading your .pbix file to GitHub
- Overview of the Publishing Process The workflow looks like this:
- Build report in Power BI Desktop
- Publish to Power BI Service (cloud)
- Store report in a workspace
- Generate embed code
Embed into a website
Step 1: Create a Workspace
A workspace is where your reports, dashboards, and datasets are stored online.
🔹 Steps
- Go to: https://app.powerbi.com
- Sign in with your account
- On the left panel, click Workspaces
- Click + New workspace
- Enter: o Name: Electronics Sales Dashboard o Description (optional)
Click Save
Step 2: Publish Your Report
🔹 From Power BI Desktop
- Open your Electronics Sales Assignment (.pbix)
- Click Home → Publish
- Sign in (if prompted)
- Select your workspace: o Electronics Sales Dashboard
Click Select
Step 3: Upload .pbix File to GitHub
This ensures version control and submission requirements.
🔹 Steps
- Go to GitHub
- Create a new repository: o Name: powerbi-electronics-sales
- Click Add file → Upload files
- Upload your .pbix file
- Add a commit message: Added Electronics Sales Power BI report
Click Commit changes
Step 4: Generate Embed Code
There are two main ways to embed:
• Public (Publish to web)
• Secure (for organizations)
🔹 Method: Publish to Web (Public)
- Go to your report in Power BI Service
- Click File → Embed report → Publish to web
- Click Create embed code
- Confirm when prompted
Power BI generates:
• Embed link
• HTML iframe code
Example Embed Code:
- Step 5: Embed Report into a Website 🔹 Option 1: Basic HTML Website
- Open your HTML file
-
Paste the iframe code:
Electronics Sales Dashboard
- Save and open in browser 🔹 Option 2: Blog Platforms (e.g., WordPress)
- Open post/page editor
- Switch to HTML view
- Paste iframe code
Publish
-
Important Notes on Embedding
Publish to Web is PUBLIC
• Anyone with the link can view
• Do NOT use for sensitive data
✔ Use secure embedding for:
• Company dashboards
• Private data
-
Key Insights
• Power BI Desktop is used for building reports
• Power BI Service is used for sharing and collaboration
• Workspaces organize content
• Embedding allows reports to be integrated into websites
• GitHub helps with version control and submission tracking
Conclusion
Publishing and embedding reports from Microsoft Power BI transforms your analysis into a shareable, interactive experience. By combining Power BI Service with platforms like GitHub, you not only present insights but also maintain a professional workflow for collaboration and deployment.
Mastering this process is essential for any data analyst, as it bridges the gap between analysis and real-world application.
Top comments (0)