Forum Discussion
Power BI custom visuals API - get applied filters
Hi all,
Is there any way, using the custom visual API, to get the filter(s) and filter values applied to visual? So basically the "conditions" for the dataset currently served from Power BI?
- Thanks!
Hi toresenneseth,
Visuals only know about the data supplied by Power BI to its dataView. Power BI will not supply information about applied filters or conditions, unfortunately.
The only exceptions to this are if you have enabled highlighting (which will send original data plus which values should be flagged in your code), or if your visual filters other visuals (behaving as a slicer). In that case you will only have the filters you have applied yourself rather than those that have been applied externally from other visuals or the filter pane though.
Regards,
Daniel
1 Reply
- dm-pSuper User
Hi toresenneseth,
Visuals only know about the data supplied by Power BI to its dataView. Power BI will not supply information about applied filters or conditions, unfortunately.
The only exceptions to this are if you have enabled highlighting (which will send original data plus which values should be flagged in your code), or if your visual filters other visuals (behaving as a slicer). In that case you will only have the filters you have applied yourself rather than those that have been applied externally from other visuals or the filter pane though.
Regards,
Daniel