March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
When using the report.updateFilters function in PowerBI embedded, the filterpane only shows the changes to the first filter in the filter array argument. To see all the filter changes in the filterpane, you have to close and open the filterpane.
This can be seen in the https://playground.powerbi.com/dev-sandbox.
const filters = [
{
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Product",
column: "isVanArsdel"
},
filterType: 1,
operator: "In",
values: ["No"],
},
{
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Geo",
column: "Region"
},
filterType: 1,
operator: "In",
values: ["West"]
},
];
report.updateFilters(models.FiltersOperations.ReplaceAll, filters);
After you run snippet, you see one filter in the "filters on all pages" in the filterpane, close and open the filter pane, now you see two filters.
This is a new bug, which wasn't present before 1. july 2021.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.