Forum Discussion
Apply JSON Filter not working
- Anonymous6 years ago
Yep, I've realised now thanks.
It turns out the answer was simply to use
visualhost.applyJsonFilter(advancedFilter, "general", "selfFilter", FilterAction.merge);
instead of
visualhost.applyJsonFilter(advancedFilter, "general", "Filter", FilterAction.merge);
This will filter the visual and not all the other visuals.
Yep, I've realised now thanks.
It turns out the answer was simply to use
visualhost.applyJsonFilter(advancedFilter, "general", "selfFilter", FilterAction.merge);
instead of
visualhost.applyJsonFilter(advancedFilter, "general", "Filter", FilterAction.merge);
This will filter the visual and not all the other visuals.
Hello.
Can you please share your current repository project?
Right now I'm facing an issue with FilterAction.merge
Anonymous wrote:Yep, I've realised now thanks.
It turns out the answer was simply to use
visualhost.applyJsonFilter(advancedFilter, "general", "selfFilter", FilterAction.merge);
instead of
visualhost.applyJsonFilter(advancedFilter, "general", "Filter", FilterAction.merge);
This will filter the visual and not all the other visuals.
Anonymous wrote:Yep, I've realised now thanks.
It turns out the answer was simply to use
visualhost.applyJsonFilter(advancedFilter, "general", "selfFilter", FilterAction.merge);
instead of
visualhost.applyJsonFilter(advancedFilter, "general", "Filter", FilterAction.merge);
This will filter the visual and not all the other visuals.
- Anonymous6 years agoNot applicable
You need to add this to the top to import FilterAction
import FilterAction = powerbi.FilterAction;