Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
I am calling on power bi client javascript library :
let newState: pbi.models.IAdvancedFilter;
on the interfaces, this library states that it extends IFilter interface:
IFilter interface has a key called "target": of type IFilterGeneralTarget
IFilterGeneralTarget can be of type IFilterTarget:
IFilterTarget can be of type IFilterColumnTarget:
IFilterColumnTarget finally has a key "column":
now the issue is why am I getting that my variable can't have a "column" key ?!:
Many thanks in advance for any support.
Rgds, Marc.
Hi @Marco57 ,
See if these will help:
https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/targets
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is the issue I have, I define an empty advanced filter :
slicerStateBetween: <pbi.models.IAdvancedFilter>{
$schema: "http://powerbi.com/product/schema#advanced",
conditions: [
{
operator: "GreaterThanOrEqual",
value: null
},
{
operator: "LessThanOrEqual",
value: null
}],
filterType: 0,
logicalOperator: "And",
target: {
column: "",
table: "",
}
}I copy it into another variable :
let newState: pbi.models.IAdvancedFilter;
newState = this.reportAssets.slicer.slicerStateBetween;
newState.target.column = currentFilter.filter.NAME;
There is hwere the error happen, I can't assign attribute column to target even if newState is of type IAdvancedFilter and as per documentation it contains target and column key inside of it:
const advancedFilter = {
$schema: "http://powerbi.com/product/schema#advanced",
target: {
table: "Store",
column: "Name"
},
logicalOperator: "Or",
conditions: [
{
operator: "Contains",
value: "Wash"
},
{
operator: "Contains",
value: "Park"
}
],
filterType: models.FilterType.AdvancedFilter
}
thanks.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |