Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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.

  1. 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();

  2. 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.