Forum Discussion
How to display the comments pane in the Embedded POWER BI report
Hello Everyone,
Recently, I came across one requirement, implement the comments functionality in the embedded power bi report.
I was able to implement following after embedding the power bi report.
- Full screen feature
var reportContainer = document.getElementById('reportContainer');
console.log(reportContainer);
// Get a reference to the embedded report.
report = powerbi.get(reportContainer);// Displays the report in full screen mode.
report.fullscreen();
- Show/hide filter panel.
var config = {
type: 'report',
accessToken: accessToken,
embedUrl: embedUrl,
id: reportId,
settings: {
filterPaneEnabled: true/false,
navContentPaneEnabled: false
}
};// Grab the reference to the div HTML element that will host the report.
var reportContainer = document.getElementById('reportContainer');// Embed the report and display it within the div container.
var report = powerbi.embed(reportContainer, config);
But, I do not find any option to display the comment section or enable the comment section using java script.
Your help is highly appreciated.
1 Reply
- AnonymousNot applicable
I'm also looking for the same thing, but coming up empty (as of 7/28/2021). Here's Microsoft's documention regarding configuration settings: https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings
Comments settings are available in Power BI Services, but I'm not finding the option to allow anyone viewing the report in Power BI Embedded to see or add comments.