Forum Discussion
Filter Chart using JavaScript API
- 9 years ago
I thought you'were embedding the report via Power BI REST API. If via "Publish to web", then it may, as the message indicats, not be supported. Try via Power BI REST API instead.
Thanks Eric_Zhang. I'm able to fix the filter undefined error .But still filter is not getting applied.
Receiving below error in the console when setFilter is called.
Uncaught (in promise) Message:"This feature is not supported for Publish To Web."
Is it anything to do with the way the report is published.
I thought you'were embedding the report via Power BI REST API. If via "Publish to web", then it may, as the message indicats, not be supported. Try via Power BI REST API instead.
- skancharla9 years agoAdvocate II
- ggww7 years agoRegular Visitor
Hi
I used the following code and it is not working, any suggestions?
var report = powerbi.embed(reportContainer, config);
var filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "customers",
column: "CustomerID"
},
operator: "Is",
values: "1234" //,
};//report.removeFilters();
report.setFilters([filter]);thansk heaps..
- ggww7 years agoRegular Visitor
Hi
I used the following code and it is not working, any suggestions?
var report = powerbi.embed(reportContainer, config);
var filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "customers",
column: "CustomerID"
},
operator: "Is",
values: "1234" //,
};//report.removeFilters();
report.setFilters([filter]);thansk heaps..