Forum Discussion
aarshps
8 years agoFrequent Visitor
Access filters in Custom Visual
Hi, I have a custom visual in which I need to access the page filters that are being applied. How can I get the filters from my Custom Visual code? I am trying to create a custom visual somew...
aarshps
8 years agoFrequent Visitor
Thank you for letting me know. But still, I could achieve the same using a matrix visualization. My doubt is, will I be able to achieve it with custom visuals? Somehow? Even the solution might not look clean, can it be done?
jppp
8 years agoContinued Contributor
The behavior you describe is default behavior of Power BI: the dataset available in your (custom) visual is already filtered by other filters from the Power BI. So if you filter on one column, only that column is available in your visual. And if you change that slicer that columns (name and values) are available.
Just try and create a 'simple' empty custom visual only with the dataRoles and dataViewMapping defined and look at the data view of the developer visual to see what dataset is available.
-JP