Forum Discussion
Support other visuals' selection in custom slicer
- 7 years ago
Hi,
To merge filtration, you should use applyJsonFilter with "merge" option.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
A) It is a regular situation that filter looks not exactly the same as initial when you get it from options.jsonFilters .
It happens because filter will be converted into a query inside Power BI and then will be restored form this query when you receive it.
B) options.jsonFilters should contain all applied filters as I know.
C) I am not sure
D) It may happens if your custom visual uses an old API because jsonFilters appeared only in API 2.2 but it is better to use the latest API.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
pbiviz.json of both projects contains
"apiVersion": "2.3.0"
May filters visibility depend on either type of filtered column or kind in dataRoles (capabilities.json)? It is Text in Grouping for custom matrix visual and Date in GroupingOrMeasure for custom slicer visual.
- v-evelk7 years agoMicrosoft Employee
No, I don't think so.
You can send the source code and the report to [email protected] and I will try to figure out what is wrong with filtration if you wish.
Kind Regards,
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]