Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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.