How to Embed an Interactive Power BI Chart on a Website

Embed Report — Power BI | analytics.bi
You can embed an interactive Power BI chart directly into a website using “Publish to web”. This lets visitors not only see the data, but also interact with it.

What Power BI Service is

Power BI Desktop lets you create reports, but you can’t embed an interactive chart into a website directly from Desktop. For that you needPower BI Service.

It’s a cloud platform where:

  • reports are hosted;
  • data refresh is performed;
  • the embed code is generated;
  • publishing is managed.
Power BI publish procesas iš Desktop į Service ir svetainę

Preparing the report in Power BI Desktop

Before publishing, you need to prepare the report:

A tidy report structure matters not only in the Desktop file. How conveniently the report will be used on the website also depends on it.

Publishing to Power BI Service

Once the report is ready:

Home → Publish → Workspace

The report will be uploaded to Power BI Service, where you can review it, refresh it and prepare it for publishing on a website.

“Publish to web”

To embed the chart on a website:

  • open the report in Power BI Service;
  • selectFile → Embed report → Publish to web;
  • confirm public publishing;
  • copy the<iframe>code.
Publish to web doesn’t work with RLS (Row-Level Security) – all the data becomes public.

If you want to see the entire Power BI workflow from data preparation to DAX calculations and publishing, it’s worth reading:the full Power BI guide from Power Query to DAX.

How to embed the chart on a website

The copied code is pasted into HTML. Below is a real interactive Power BI chart example:

What you need to know about security

When using “Publish to web”, the data becomes publicly accessible. This means:

  • sensitive data cannot be used;
  • user access control cannot be applied;
  • the data may be indexed by search engines.
Publish to web is suitable for public projects, for example portfolios, demos or public analyses. For business reports with sensitive data, you should use safer publishing methods.

If you need security, it’s worth choosing Secure Embed, Power BI Apps or other access-control solutions.

What to read next

Conclusion

Power BI lets you embed interactive charts into a website in a few minutes. The process is simple:

  • prepare the report;
  • publish it to Power BI Service;
  • copy and paste the iframe code.

Such charts provide great value – users can analyze the data directly on the website, without additional tools.

Free cheat sheet

Power Query cheat sheet: automate your report

The key steps, the 5 common mistakes, and when automating is worth it.

  • PDF · 2 pages, practical
  • No spam — value only
Blank Form (#5) (#6)
No spam. Unsubscribe anytime.

Similar Posts