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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

 

 

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?

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.