Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I would like to replace the report navigation at the bottom of Power BI Embedded with my own buttons and icons. Does anyone have a tutorial for this? My initial thought is that I could create each button, make each one a link to a URL with query string (www.mysite.com?report="Report1"), and somehow use this value in the JavaScript API. I'm open to any other implementation ideas as well.
Also, I'm using RLS, though I don't think that will affect anything.
Thanks!
Hi @ats1958,
Could you mark the proper answer as a solution please?
Best Regards,
Dale
Hi @ats1958,
There are JS functions that can achieve your goal. Please try it in this site which also contains source code.
// Get a reference to the embedded report HTML element
var embedContainer = $('#embedContainer')[0];
// Get a reference to the embedded report.
report = powerbi.get(embedContainer);
// Retrieve the page collection, and then set the second page to be active.
report.getPages()
.then(function (pages) {
pages[1].setActive()
.catch(function (errors) {
Log.log(errors);
});
})
.catch(function (errors) {
Log.log(errors);
});
Best Regards,
Dale
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |