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.
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.