How to Embed Power BI into Website
Sharing your Power BI report doesn't have to end with an email or a SharePoint link. You can embed your interactive reports directly into your website, transforming a static page into a dynamic data hub for your team, clients, or the public. This guide will walk you through the various ways to embed Power BI reports, complete with step-by-step instructions and important security tips to keep your data safe.
Why Embed Power BI Reports in Your Website?
Embedding reports and dashboards goes beyond simple convenience. It creates a seamless experience for your viewers, allowing them to interact with data in a familiar environment without having to navigate to the Power BI service. This approach brings several key benefits:
- Wider Accessibility: Make insights available to users who don’t have a Power BI account or aren't familiar with BI tools. This is perfect for public data reports or providing high-level dashboards to external stakeholders.
- Centralized Information: Instead of directing your team to multiple platforms, you can place key performance metrics directly within an internal portal, project management tool, or company website they already use every day.
- Enhanced User Experience: Interactive visuals, slicers, and filters embedded on a page are far more engaging than a static screenshot of a chart. Users can explore the data themselves to find answers to their own questions.
- Real-time Decision Making: Embedded reports are live and update automatically as a new data source is refreshed. This ensures everyone is working with the most current information, not a stale export from last week.
Understanding the Three Main Embedding Options
Before you copy and paste any code, it’s essential to understand the different methods for embedding Power BI content. The right choice depends entirely on who your audience is and how sensitive your data is.
1. Publish to web (Public)
This is the quickest and easiest way to embed a report, but it’s also the least secure. When you use "Publish to web," Power BI generates a public link to your report. Anyone on the internet with this link can view your report and its underlying data. Search engines can even index the content.
- Who is this for? Bloggers, journalists, government agencies, or non-profits sharing public-facing data (e.g., census data, environmental stats, market survey results).
- Key consideration: DO NOT use this method for any confidential, proprietary, or sensitive information. Once the report is published, you should assume the data is public.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
2. Embed (Secure)
This method, often called "Embed for your organization," is designed for sharing reports internally. It generates an embed code that respects all the permissions and security settings of your Power BI environment, including Row-Level Security (RLS).
- Who is this for? Companies wanting to embed reports in secure internal portals, SharePoint Online pages, or Microsoft Teams channels.
- Key consideration: To view the embedded report, users must have a Power BI Pro or Premium Per User (PPU) license and be signed into their organizational account. If they don't have permission to view the report in Power BI, they will see an error message, not the data.
3. Power BI Embedded Analytics (For Developers)
This is the most advanced and flexible option, designed for independent software vendors (ISVs) and developers who want to embed Power BI content into their own applications for external users. This method is often called "Embed for your customers."
- Who is this for? SaaS companies that want to offer in-app analytics to their customers without requiring each customer to have a Power BI license.
- Key consideration: This requires significant developer resources, an understanding of APIs, and a Power BI Embedded capacity (A, EM, or P SKUs) for licensing. It's a powerful solution for product teams but overkill for simple website embedding. This guide will focus on the first two, more common methods.
How to Embed Your Power BI Report: A Step-by-Step Guide
Now that you know the options, let’s walk through the exact steps for the two most common use cases: publishing to the public web and embedding securely for your organization.
Method 1: Using "Publish to web" for Public Data
Only use this method for data you are comfortable sharing with the entire world. Double-check that your report contains no sensitive information before proceeding.
- Open Your Report: Log in to the Power BI service (app.powerbi.com) and navigate to the report you want to embed.
- Generate the Embed Code: In the top menu, click File > Embed report > Publish to web (public).
- Review the Warning: You'll see a dialog box warning you about making your data public. Read it carefully. If you are confident the data is safe to share, click Create embed code.
- Publish: Click Publish in the next confirmation window. Power BI will then generate an embed code.
- Copy the Code: You'll now see a pop-up containing two options: a direct link to the report and an HTML iframe code snippet. For embedding in a website, you want to copy the HTML code.
- Paste the Code into Your Website:
Method 2: Using "Embed" for Secure Internal Sharing
Use this option when you need to share a report on an internal page and ensure only authenticated, permissioned users can see the data.
- Open Your Report: Log in to the Power BI service and go to the report you want to share.
- Generate the Secure Embed Code: Click File > Embed report > Website or portal.
- Copy the Code: A pop-up will appear with an HTML iframe embed code. This link directs users to an authenticated session. Copy this code.
- Paste the Code into Your Portal:
When users visit this page, their browser will check if they are logged into a valid Microsoft account. If they are, Power BI will verify they have permission to view the report. If they have permission, the report will load. If not, they will see a 'Content isn't available' message.
Customizing the Viewer Experience
You can fine-tune what the end-user sees by adding parameters to the URL within your iframe code. This lets you hide certain navigation elements or set a default page.
For example, you can hide the navigation pane and the filter pane to create a cleaner, more focused view. Just add &navContentPaneEnabled=false and &filterPaneEnabled=false to the end of the URL inside the src attribute of your iframe tag.
Here’s an example of what the code looks like:
<iframe title="Report Name" width="800" height="600" src="https://app.powerbi.com/reportEmbed?reportId=...&autoAuth=true&ctid=...&navContentPaneEnabled=false&filterPaneEnabled=false" frameborder="0" allowFullScreen="true"></iframe>You can also specify which page of your report loads first by adding the pageName parameter, such as &pageName=ReportSection1 (replace "ReportSection1" with your actual page name from the report).
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Important Security Best Practices
Data security should always be your top priority when sharing reports. Keep these key principles in mind:
- Audit Your Public Reports: Regularly review any reports you've published to the web. In Power BI, go to Settings > Admin portal > Embed codes to see a list of all public embed codes across your tenant. You can permanently delete any code from here, which will disable the public link.
- Never Use "Publish to web" for Sensitive Data: This cannot be stressed enough. Confidential financial data, customer PII, internal performance metrics, and any sales funnel report data considered proprietary should never be shared using this method.
- Lean on Workspaces and Apps for Secure Sharing: For the "Website or portal" method, the best way to manage access is through secure Power BI workspaces and Power BI Apps. Add only the required users to the workspace or app, and they will be the only ones able to view the embedded report.
- Communicate With Your Audience: Let users know what they're looking at. For secure embeds, it's helpful to add a note on the page like, "Can't see the report? Make sure you are logged into your Microsoft 365 account and have been granted access."
Final Thoughts
Embedding Power BI reports into a website is a brilliant way to make data accessible and a part of everyday workflows. By choosing the right method - public for open data or secure for your organization - you can share powerful, interactive insights exactly where your audience needs them. Just remember to prioritize security to ensure your business reporting and your company's data stays confidential.
Building reports in tools like Power BI is incredibly powerful, but getting your data from sources like Salesforce, Shopify, Google Ads, and Google Analytics into a single, report-ready state can still be a huge manual effort. At Graphed, we automate that entire connection and reporting process. You can connect all your key data sources in one click and then build real-time dashboards simply by describing what you want to see in plain English, getting you from raw data to actionable insights in seconds, not hours.
Related Articles
AI Agents for SEO and Marketing: The Complete 2026 Guide
The complete 2026 guide to AI agents for SEO and marketing — what they are, top use cases, the best platforms, real-world examples, and how to get started.
AI Agents for Marketing Analytics: The Complete 2026 Guide
The complete 2026 guide to AI agents for marketing analytics — what they are, how they differ from automation, 10 use cases, pitfalls, and how to start.
How to Build AI Agents for Marketing: A Practitioner's Guide From Someone Who Actually Ships Them
How to build AI agents for marketing in 2026 — a practitioner guide from someone who has shipped a dozen, with the lessons that actually cost time.