Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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)
Any leads from the community are much appreciated!
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
10 | |
3 | |
3 | |
2 | |
2 |