cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to Hide Power BI iFrame Embedded Report Tabs

Hi,

 

I am trying to build a web app that embeds one particular Power BI report. Since this is only one report, I would like to hide "Filters" and the tabs. I was able to figure out how to hide "Filters" using 

&filterPaneEnabled=false

which I found on the forums. However, there are no hints if it is possible to hide the report tabs. There is one report and there is no reason to have tabs (at least for my purposes).

snip_20170202100451.png

Is this possible? If so, where do we find all this information? How are we supposed to know what options are available for modifying the look? 

 

Cheers.

 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft
Microsoft

@Anonymous

You can surely hide the page navigation with Power BI Javascript API. Check a more elegant demo Custom Page Navigation.

 

<html>
   <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/jquery/dist/jquery.js"></script>  
   <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/powerbi-client/dist/powerbi.js""></script>
   <script type="text/javascript">
      var embedConfiguration = {
          type: 'report',
          accessToken: 'eyJ0YourTokenHereA',
          id: '719c43ad-xxxxx-f79e8f58c1a6',
          embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=719c43ad-b663-xxxxxxx-f79e8f58c1a6',
      	settings: {
                      filterPaneEnabled: false,
                      navContentPaneEnabled: false
                    } 
      }; 
      
      var report;
      
      window.onload = function () {  
      var $reportContainer = $('#reportContainer'); 
       report= powerbi.embed($reportContainer.get(0), embedConfiguration);
        
      }  
      
   </script>
   <div id="reportContainer"></div>
</html>

View solution in original post

14 REPLIES 14
FMVigoCC
New Member

Hi!

Super nice stuff here! Question: how can one hide the PowerBI footer at the end of an iframe?

Any chance there is a simple "&...." to add to the embed link? 

Thanks!

 

ARodenbusch
Advocate I
Advocate I

Add (concat) at the end of your PowerBi report URL:

&filterPaneEnabled=false&navContentPaneEnabled=false

Worked here, thank you very much!

Unfortuntely, adding &navContentPaneEnabled=false at the end of iframe src doesn't work for me. Instead, I found a css hack to cut off the bottom navigation tabs from the UI by wrapping the iframe component with an additional div with shorter height. 

 

<div id="reportContainer" class="dds__d-none" style="height:804px; overflow-y:hidden">
    <iframe id="reportFrame" onload="powerBiLoaded()" frameborder="0" seamless="seamless" class="viewer pbi-frame" style=" width: 100%; height: 840px;" src="https://example.com">
    </iframe>
</div>

 

 

 

The navigation tabs in iframe is about 36px in height. Just have to set the outer container height 36px less than the iframe height and overflow-y:hidden. This would hide the bottom navigation bar in the iframe from view.

michaelsh
Continued Contributor
Continued Contributor

Thanks, @ARodenbusch !

&navContentPaneEnabled=false - works great!

Is there a list of all URL parameters I can use?

veeramohan_m
Frequent Visitor

Hi @Anonymous

 

I tried the solution that you have marked but I couldnt hide the filters pane and navigation pane.

 

I am working on an on-premise Power Bi Report server and trying to publish a report from the report server to the web.

 

When I attach the URL query parameter "?rs:Embed=true" to the report URL, I can see it in fullscreen. But When I add the "&filterPaneEnabled=false" parameter, the URL just ignores it.

 

Please suggest me what I am missing.

 

Thanks,

Mithra

Nirav1
New Member

How to Hide Power BI Particular page out multiple page from the code side.

Not to hide from BI right click and check

abhi123
Frequent Visitor

Hi mhasanbulli,

Below link will help you to understand each and every terms of how to embed report , how to get pages details , and many more customization etc. 

https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html

Thanks,
Abhi.

abhi123
Frequent Visitor

Hi mhasanbulli,

Below link will help you to solve your problems related to power bi embed with JS. Let me know if anything more needed.

https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html

Thanks,
Abhi.

Is there a way to hide the page selector in the botom of the frame? the one that looks like this: <  1   of   5   >

We need to deliver especific pages to specific users

 

Thx

Is there a way to hide the page selector in the bottom of the frame? the one tha looks like this: <  1  of  5  >

We want to deliver specific pages for especific users

 

Eric_Zhang
Microsoft
Microsoft

@Anonymous

You can surely hide the page navigation with Power BI Javascript API. Check a more elegant demo Custom Page Navigation.

 

<html>
   <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/jquery/dist/jquery.js"></script>  
   <script src="https://microsoft.github.io/PowerBI-JavaScript/demo/bower_components/powerbi-client/dist/powerbi.js""></script>
   <script type="text/javascript">
      var embedConfiguration = {
          type: 'report',
          accessToken: 'eyJ0YourTokenHereA',
          id: '719c43ad-xxxxx-f79e8f58c1a6',
          embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=719c43ad-b663-xxxxxxx-f79e8f58c1a6',
      	settings: {
                      filterPaneEnabled: false,
                      navContentPaneEnabled: false
                    } 
      }; 
      
      var report;
      
      window.onload = function () {  
      var $reportContainer = $('#reportContainer'); 
       report= powerbi.embed($reportContainer.get(0), embedConfiguration);
        
      }  
      
   </script>
   <div id="reportContainer"></div>
</html>
Anonymous
Not applicable

Hi!
I can't seem to get this to work. i'm not very smart when it comes to this so maybe i'm doing something wrong but when i copy paste your code and exchange the URL to my embed. i don't get any changes.

If you have already rendered your report, you can remove the page tabs like this:

 

// get the container the report is embedded into
var reportContainer = document.getElementById('reportContainer');
// get the report
var report = powerbi.get(reportContainer);
// create new settings
var settings = {navContentPaneEnabled: false};
// update the settings
report.updateSettings(settings);

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

Check it Out!

Mark your calendars and join us on Thursday, September 29 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors
Top Kudoed Authors