Forum Discussion

apagan's avatar
apagan
Helper I
9 years ago

Hiding the Filters Panel

We have embedded a Dashboard in an internal Web site and would like to hide the Filters panel. Is that possible?  Thanks.

 

4 Replies

  • kevhav's avatar
    kevhav
    Continued Contributor

    How are you embedding it? 

     

    Power BI Reports in SharePoint Online? Or with the Power BI API? Or with Power BI Embedded

     

    If you're using the SharePoint web part, then you can edit the web part, and there is an option in the web part configuration for turning off the filter pane.

     

    If you're using the API...I've never done it, but this page says something, and has an example, about "Enable and disable the filter pane and page navigation pane."

     

    If you're using Power BI Embedded...again, I've never done it, but this page seems to have a solution.

    • apagan's avatar
      apagan
      Helper I

      We are using Power BI embeded.  I've read the provided page - I will give it a try and pass along the outcome.

       

      Thanks.

      • v-huizhn-msft's avatar
        v-huizhn-msft
        Microsoft Employee

        Hi apagan,

        Welcome to share your solution if you have resolved your solution, so more people will appreciate your workaround.

        Best Regards,
        Angelia

  • This is done by adding this section to your config:

            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }


    My complete config looks like this:

        var config = {
            type: 'report',
            tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            permissions: models.Permissions.Read,
            settings: {
                filterPaneEnabled: false,
                navContentPaneEnabled: false
            }
        };