Forum Discussion
Anonymous
8 years agoNot applicable
Trying to filter data in custom visual
Good evening, I'm relatively new to Power BI and want to create a filter for my data in my custom visual so my data will be updated in every other visual/slicer on the same page. Right now I have th...
- 8 years ago
Hello Anonymous,
At first you should add the filter option into capabilities.json:
"objects": { "general": { "displayName": "General", "properties": { "filter": { "type": { "filter": true } } } } }As a final step you should call selectionManager.applySelectionFilter() after calling selectionManager.select.
Could you please apply the necessary changes to your code base and let us know if that works well?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
8 years agoCommunity Champion
Hello Anonymous,
At first you should add the filter option into capabilities.json:
"objects": {
"general": {
"displayName": "General",
"properties": {
"filter": {
"type": {
"filter": true
}
}
}
}
}
As a final step you should call selectionManager.applySelectionFilter() after calling selectionManager.select.
Could you please apply the necessary changes to your code base and let us know if that works well?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Anonymous
8 years agoNot applicable