Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Hiding filter pane in Embedded

Hi All,   I have a situation where I can see the filter pane in my embedded report whereas I have hid the pane in the Desktop and also can't see it in the Service. But I'm not sure why I'm seeing i...
  • V-lianl-msft's avatar
    4 years ago

    Hi Anonymous ,

     

     If you using Power BI Embed and developing an app,please refer to: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html

    There you can see examples of the variable config and set in false the pane "filters":

    var config = {
        type: 'report',
        tokenType: tokenType == '0' ? models.TokenType.Aad : models.TokenType.Embed,
        accessToken: txtAccessToken,
        embedUrl: txtEmbedUrl,
        id: txtEmbedReportId,
        permissions: permissions,
        settings: {
          panes: {
            filters: {
              visible: false
            },
            pageNavigation: {
              visible: true
            }
          }
        }
    };

     

     

    Hope this helps.


    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.