Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ats1958
Helper II
Helper II

Query String Report Selection with Embedded

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!

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @ats1958,

 

Could you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

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

Query_String_Report_Selection_with_Embedded

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.