I have a working app based on the App Owns Data documentation & Javascript sample:
https://learn.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers
https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#
I am able to get the data out of each visualisation but I also want to know what filters are affecting it.
I can get the slicer states, but cannot get any filters applied by clicking on the charts. If you click on one datapoint, that filters the entire page. In the dashboard I can then click on the filter icon next to each chart and see 'Filters and slicers affecting this visual'.
I would really like to get this information via the JS API, but can't find it in the page.getFilters(), report.getFilters() or visual.getFilters().
Is it possible to do, and how?