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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Asantoss96
Regular Visitor

Update parameters on PowerBI Embed using javascript

I have an SPA that renders a report based on a user clicking a row in a html table. We show the report in an element below, I get the parameters when the user clicks the row and plug them into the embedurl. When the user clicks another row I need to update those parameters. Is there anyway to update the parameters without having to call powerbi.reset and powerbi.embed again, I rather not have to tear down the iframe and render it again with a new embedUrl.
Clicking another row while the report is open should effectively mimic the user going to the parameter panel and updating the values and clicking view report.

3 REPLIES 3
TedPattison
Employee
Employee

Instead of changing the EmbedUrl, can you set a filter on the embeded report to get the same effect using the Power BI JavaScript API?

I forgot to mention this is a paginated report. When I try to use a filter I get an error detailing that paginated reports do not support filters.

OK, my bad. I thought it was a standard Power BI embedded report. I am afraid I don't know the answer when dealing with paginated reports.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.