title: Power BI Embedded - Get current filters with Javascript
body: <p>I have a working app based on the App Owns Data documentation &amp; Javascript sample:</p>
  <p><a href="https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers</a></p>
  <p><a href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" rel="nofollow noreferrer">https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#</a></p>
  <p>I am able to get the data out of each visualisation but I also want to know what filters are affecting it.</p>
  <p>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'.</p>
  <p>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().</p>
  <p>Is it possible to do, and how?</p>