
Announcements
Hello,
Is it possible to hide the filter pane within an embedded report? The filter pane is currently hidden within PBI service, but when embedded to appears.
I have found a solution, it needs to be done within the advanced section to add a javascript code to hide it. Currently I believe there is a bug so editing the JS is a workaround. Code below:
$( document ).ready(function() {
var rpEle = $('.portal-pbi-embedded'); // select report element
var report = powerbi.get(rpEle[0]); // get report instance
// we want to update settings when the report is loaded
report.on("loaded", function () {
const newSettings = {
panes: {
filters :{
visible: false // hide filter pane
}
}
};
report.updateSettings(newSettings)
.catch(error => { console.log(error) });
});
});