Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
alexanderg
Advocate II
Advocate II

Embed Power BI Report in HTML Page Using API

Hi Everyone!

I am Trying to embed a Power BI report in an HTML page, now I know how to create the basic code to embed the report in an iframe using html with javascript, but the problem is that I couldn't automate the process to generate and refresh the access token in the backend. I was considering making the authentication process using ADAL JS. Anyone has experience in this?, or if someone have any other solution is welcome. What is the best way? Excuse my little knowledge, but I am not a developer Thanks in advance

4 REPLIES 4
Anonymous
Not applicable

@alexanderg : Have you embed your HTML PAge on PowerBI Page OR Report. Is this possible. Kindly share the steps if you have done this.

 

Thanks:

 

Hi @Anonymous,

Yes it is possible now. After you publish your dataset to Power BI service, go to power BI service and login.

In there go to reports section and there got to File > Publish to Web.

This will generate js code for you and you can embed the js code.

 

For example we did it for Customised Waterfall chart on our website as below :

 

Custom Waterfall Displayed on Web Page

 

 

joncarl
Microsoft Employee
Microsoft Employee

Is there a way to automate the publishing of an HTML output from a dataset without a human interacting with the PowerBI interface (select, execute, extract, embed, publish), for instance, a pull; running a command from the target to publish current values?

joncarl
Microsoft Employee
Microsoft Employee

Is there a way, to automate a PULL from a dataset, so that these can be published without a human involved (select, execute, extract, paste, deploy)?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.