Forum Discussion
ysapiyev
8 years agoResponsive Resident
Sync between custom filter and slicer
Hi everyone, I have custom visual which filters date and I also have regular slicer with date with date input and slider. It looks like this: In left I have custom filter which sele...
v-chuncz-msft
8 years agoCommunity Support
- v-viig8 years agoCommunity Champion
How do you apply selection/filter in your custom visual?
The slicer doesn't react on any kind of selection if is's applied via SelectionManager.
We would recommend to start using Advanced Filter API.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- ysapiyev8 years agoResponsive Resident
I'm using selection manager.
To use advanced filter API, I should updateOnRangeSelectionChange formula with my own conditions, right? What it will return?
Regards,
Yerkhan
- v-viig8 years agoCommunity Champion
You are correct. The updateOnRangeSelectonChange should be modified but it will return nothing as type is void.
The purpose of this function is to generate an IAdvancedFilter and apply it via applyAdvancedFilter.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals