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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
davehchoi
Regular Visitor

Is it possible to embed the entire powerbi.com app as an iframe inside another asp.net website

I would like to host powerbi.com inside of my asp.net website page. Specifically I want to do this so that users can create, edit, etc their reports and dashboards starting from within my website url. I tried using iframe and embed elements but both give me the error "The content cannot be displayed in a frame". Is this simply not possible?

 

If this is not possible is it possible to embed a report or dataset and also enable the toolbar to show so that users can edit the report or dataset?

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @davehchoi,

 

We can't use the embedded link in the iframe directly. We need to call powerbi.js like below. Please try and check out the demo here.

var txtAccessToken = $('#txtAccessToken').val();
var txtEmbedUrl = $('#txtReportEmbed').val();
var txtEmbedReportId = $('#txtEmbedReportId').val();
var tokenType = $('input:radio[name=tokenType]:checked').val();
var models = window['powerbi-client'].models;
var permissions = models.Permissions.All;
var config= {
    type: 'report',
    tokenType: tokenType == '0' ? models.TokenType.Aad : models.TokenType.Embed,
    accessToken: txtAccessToken,
    embedUrl: txtEmbedUrl,
    id: txtEmbedReportId,
    permissions: permissions,
    settings: {
        filterPaneEnabled: true,
        navContentPaneEnabled: true
    }
};
var embedContainer = $('#embedContainer')[0];
var report = powerbi.embed(embedContainer, config);

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks but this seems to embed reports or dashboards. I'm looking to embed the entire app so that users can actually create or edit reports and dashboards.

Hi @davehchoi,

 

Usually, we can do it by adding it in an iframe. But I'm afraid that isn't available. Please refer to the snapshot below.

Is_it_possible_to_embed_the_entire_powerbi

 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.