web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Can't disable power bi...
Power Pages
Unanswered

Can't disable power bi navigation tab on power bi embedded

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I embedded a power bi report in a power pages and use custom JS to disable the navigation tab. Follow its the print where i insert the custom code that microsoft indicate to do that (Add a Power BI report or dashboard to a webpage in a portal - Power Apps | Microsoft Learn)

 

FelipeBR_0-1703598886011.png

 

But sadly, that didn't work for me. Follow its the print of my power bi embedded in my power pages

 

FelipeBR_1-1703599098916.png

 

Would anyone know a solution to this problem? If so, could you tell me the solution for this. Thank you in advance.

 

 

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @FelipeBR,

    Please use $(window).load instead of $(document).ready - this is because sometimes powerbi report wouldn't load when the document ready event would be fired, thus making the code unusable. Using window.load ensures that the page is fully loaded first. You can find more information on how to use powerbi client side library in my blog post - https://www.dancingwithcrm.com/customizing-embedded-powerbi-in-powerapps-portal/

  • FelipeBR Profile Picture
    8 on at

    Hello @OOlashyn ,

    I changed the code as you indicate on the forum but the the navigation tab keep showing on the page. I tested with other report with a filter tab and the same keep showing too.

    FelipeBR_0-1703762420888.png

    FelipeBR_1-1703762546300.png

    FelipeBR_2-1703762996766.png

     

    Do you have any idea what could be happened? If yes, a solution for that. Thank you in advance.




  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    @FelipeBR can you try after the page is fully loaded to open the console and run the code there:

     // get div container for powerbi report
     var embedContainer = $(".powerbi")[0];
    
     // get reference to the embedded report
     var report = powerbi.get(embedContainer);
    
     report.updateSettings({
     panes: {
     filters :{
     visible: false
     },
     pageNavigation:{
     visible: false
     }
     }
     }).catch(function (errors) {
     console.log(errors);
     });

     

  • FelipeBR Profile Picture
    8 on at

    After running this code on the console the following error shows:

     

    FelipeBR_0-1703856383697.png

    Looks like there is no power bi instance on the page but the BI report is loaded on the page. Do have any idea what could be generating this error?

  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    @FelipeBR looks like there is some issue with powerbi bundle. Please check if you have any update available for your Power Pages site - MS recently updated powerbi js version and the site might be expecting that one for some reason. To check if updates are available and how to update - see this official doc - https://learn.microsoft.com/en-us/power-pages/admin/update-solution#update-a-website-package. Also powerbi-client is only supported for powerbi embedded flow - so if you are using AAD auth it will not work for you (you would need to use {% powerbi authentication_type:"powerbiembedded " path:"MyPowerBIURL" %} )

    OOlashyn_0-1703885513518.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Hammed Profile Picture

Hammed 22

#2
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#3
DP_Prabh Profile Picture

DP_Prabh 19

Last 30 days Overall leaderboard