Blog Post

Power BI Community Blog
2 MIN READ

Embedding Power BI Report in Web Pages

anmolmalviya05's avatar
anmolmalviya05
Icon for Super User rankSuper User
1 year ago

In this blog, we will explore how to make your Power BI report publicly accessible and embed it on a web page using Power BI’s Publish to Web feature.

 

Step-by-Step Guide

Step 1: Open Your Report

  • Log in to Power BI Service.
  • Open the report you want to make public.

Step 2: Publish the Report

  • Navigate to File > Embed report > Publish to web (public).

Step 3: Generate Embed Code

  • A dialog box titled Embed in a public website will appear.
  • Click on Create embed code, then confirm by clicking Publish.

Step 4: Choose an Embedding Option

After creating the embed code, Power BI offers two alternatives:

 

Alternative 1: Share a Public URL

  • Copy the URL provided.
  • Share the link via email, messaging, or social media.

Key Features:

  • Recipients don’t need Power BI subscriptions to access the report.
  • If your report has multiple pages, all pages are accessible via the shared URL.

Alternative 2: Embed in a Website

  • Copy the provided iframe HTML element.
  • Paste it into the HTML of your website.

Example: Below is a sample HTML code snippet demonstrating how to embed the report:

 

Steps to Implement:

  • Paste the iframe code into your website’s HTML file.
  • Save the file.
  • Open the saved file in a web browser to verify that the embedded Power BI report loads correctly.

Result

Using the Publish to Web feature, you can share or embed your Power BI reports in two simple ways:

  • By sharing a public URL.
  • By embedding the report in your website’s HTML using the iframe code.

 

Anmol Malviya

Data Analyst | Addend Analytics

Published 1 year ago
Version 1.0

5 Comments

  • Powerbi12399's avatar
    Powerbi12399
    Regular Visitor

    Thank you for sharing, when I click file>publish, there is only publish it to power bi, what should i do?

     

  • cravity-hub's avatar
    cravity-hub
    Regular Visitor

    Hi Powerbi12399, 

     

    The process outlined by anmolmalviya05 above was done in Power BI service not Power BI desktop.

     

    After publishing your report from Power BI desktop, you will need to visit your organiation's Power BI service account to follow the embedding process.