cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

16 REPLIES 16
AdrianLock
Helper I
Helper I

I know this is an old post.  However for anyone one else who comes cross this page and wonder why it did not work.  This will not work with the standard BI link you get once you publish report in our case to a workspace.  You will need to do the following to get the right link: -

  • Once Published go to the file menu.
  • Then select </> Embed Report
    • Followed by Website or portal
  • Copy the link below Here's a link you can use to embed this content
  • Paste this into web browser
  • Add the following to the end of the link  &navContentPaneEnabled=false 

You should now get a full screen page with no page navigations showing

 

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.

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);

where do you put this coding 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors