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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Mohit16
Regular Visitor

Embeding Power BI Report on Confluence

Hi Everyone,

As i have published reports on Power BI service. For reporting we are using confluence page on-premise but when i use iframe(/html) and paste embed code generated from Power BI service, it is showing latest saved page from report not the page which i have mentioned in with specific "pageid".

Could you please help me to find a solution for that?

Thanks in advance.

@embed

1 ACCEPTED SOLUTION
v-sgandrathi
Community Support
Community Support

Hi @Mohit16,

 

With your current setup using the HTML/iframe macro, integrating the Power BI JavaScript API is not straightforward. The JavaScript API needs a custom web application that can run scripts and handle authentication securely, such as with Azure AD or embed tokens. However, most Confluence on-premise environments restrict HTML macros from running external JavaScript, which blocks direct use of the API.

This means you can't dynamically control report behavior, like navigating to a specific page using pageName, within a standard iframe embed.

Instead, you might consider these alternatives:

 

Set the desired report page as the default in Power BI Desktop before publishing

Create a custom web application using Power BI Embedded and embed that into Confluence if possible

Look into Confluence plugins or macros that offer advanced embedding features

 

In conclusion, iframe embedding has limited control, while the JavaScript API is more flexible but needs a custom hosting solution outside of Confluence.

 

Thank you.

View solution in original post

5 REPLIES 5
v-sgandrathi
Community Support
Community Support

Hi @Mohit16,

 

we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

Should you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!

v-sgandrathi
Community Support
Community Support

Hi @Mohit16,

 

With your current setup using the HTML/iframe macro, integrating the Power BI JavaScript API is not straightforward. The JavaScript API needs a custom web application that can run scripts and handle authentication securely, such as with Azure AD or embed tokens. However, most Confluence on-premise environments restrict HTML macros from running external JavaScript, which blocks direct use of the API.

This means you can't dynamically control report behavior, like navigating to a specific page using pageName, within a standard iframe embed.

Instead, you might consider these alternatives:

 

Set the desired report page as the default in Power BI Desktop before publishing

Create a custom web application using Power BI Embedded and embed that into Confluence if possible

Look into Confluence plugins or macros that offer advanced embedding features

 

In conclusion, iframe embedding has limited control, while the JavaScript API is more flexible but needs a custom hosting solution outside of Confluence.

 

Thank you.

v-sgandrathi
Community Support
Community Support

Hi @Mohit16,

 

This is expected behavior when using the standard embed code (iframe) from Power BI Service. The embed URL often does not consistently respect the pageName or pageid parameter, so the report usually opens to the last saved or default landing page instead of the page you selected. This limitation is especially noticeable in environments like Confluence on-premise, where iframe embedding offers limited navigation control. To address this, you can set your preferred page as the default in Power BI Desktop before publishing. For dynamic page selection, using the Power BI JavaScript API (Power BI Embedded) is recommended, as it lets you set the page programmatically.

 

Thank you.

Thank you @v-sgandrathi ,

 

The solution looks good. However, another question would be is there any option like we can use Power BI JavaScript API in Confluence? or where can i find tutorial for that?

Because currently the whole reporting is being done by /html(iframe), concern is would it be possible to use it? or There is another way around for this issue.

Thank you.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.