Forum Discussion

Mohit16's avatar
Mohit16
Regular Visitor
4 months ago
Solved

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 servic...
  • v-sgandrathi's avatar
    4 months ago

    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.