Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Respected Amin,
I am using the following code snippet:
const target = {
//Table name
table: this.column[0].queryName.substr(0, this.column[0].queryName.indexOf('.')),
//First field in the table which we want to apply filter on:
column: this.column[0].queryName.substr(this.column[0].queryName.indexOf('.') + 1)
};
//Checking for the name.
console.log("Table: " + target.table + "\nColumn: " + target.column);
let filter = new models.AdvancedFilter(
target,
"And",
{
operator: "Is",
value: text
}
);
let action = FilterAction.merge;
this.searchBox[0].value = text;
this.host.applyJsonFilter(filter, "general", "filter", action);
I want to apply filter on the table for 2 columns. That means I will have to use an API that takes 2 targets and filter as arguments.
Is there any solution available for this usecase? In short, I want to apply filter on 2 columns of same table.
Multi column filters : Now they are supported!
https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api
Multi column filters are not supported. Current target is end of this year to bring such feature.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
18 | |
11 | |
5 | |
4 | |
3 |