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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jdy_ums
Regular Visitor

Change Field Parameter value in an embedded app

Hello!


I have an app that changes the measure of the charts based on the selected value in the field parameter. It’s working fine from the portal, but how do I change the value of the parameter field when the objects are embedded as separate visuals on a webpage?


Additional Info:

Here’s the expected behavior from the portal (app.powerbi.com)

 field parameter.gif

 


Any leads from the community are much appreciated!

1 REPLY 1
Anonymous
Not applicable

Hi @jdy_ums ,

To change the value of a field parameter in an embedded Power BI report, you can use the setFilters method of the Power BI JavaScript API:

let report = powerbi.embed(reportContainer, embedConfiguration);

// Get the existing filters
let filters = await report.getFilters();

// Find the field parameter filter
let fieldParameterFilter = filters.find(filter => filter.filterType === "FieldParameter");

// Change the value of the field parameter
fieldParameterFilter.values = ["New Value"];

// Apply the updated filters
report.setFilters(filters);

Best Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.