Forum Discussion
Anonymous
6 years agoNot applicable
Hide filter pane in embbed application
Hi All, I am facing issue with filter pane in the power bi reports which is embedded in an application. I don't want to show filter pane so I have hideit in the desktop using eye icon, and it is...
ibarrau
6 years agoSuper User
Hi! Hiding the filter pane is not something you have to do in power bi desktop for embeded apps. It will depend on how you are embedding.
1- If you are embedding just with clicking on three dots of the report -> Embed -> Website then it should be really easy. Try adding on the url:
&filterPaneEnabled=false
https://app.powerbi.com/reportEmbed?reportId=<yourReportIDHere>&autoAuth=true&filterPaneEnabled=false
2- If you using Power Bi Embed and developing an app then get in here: 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.