Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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.