Forum Discussion
ysapiyev
Responsive Resident
8 years agoSync 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
Community Support
8 years ago- v-viig8 years ago
Community 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 ago
Responsive 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 ago
Community 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