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 moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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.