<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Read Filter in Custom Visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Read-Filter-in-Custom-Visual/m-p/910553#M22091</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to read the filter settings in the custom Visual? So not only receiving filtered data, but actually to read it somehow?&lt;/P&gt;&lt;P&gt;The custom visual should react to the filter, but not only to the new data provided. It is needed to navigate in a map in a read-only report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm correct the filter API, does not provide read functinality. The api only sets filters.&lt;/P&gt;&lt;P&gt;Also the InteractivityFilterService does not do the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { InteractivityFilterService } from "powerbi-visuals-utils-interactivityutils/lib/interactivityFilterService";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the options.jsonFilters property in the update-function is always empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw in an example the following: Capabilites.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"selfFilter": {
                    "type": {
                        "filter": {
                            "selfFilter": true
                        }
                    }
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not provide anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the following (which is also always empty)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; dataViewObjects.getValue(data.metadata.objects, Filter.filter)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone can provide an good example, because all examples from microsoft are outdated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 09:11:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-24T09:11:51Z</dc:date>
    <item>
      <title>Read Filter in Custom Visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Read-Filter-in-Custom-Visual/m-p/910553#M22091</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to read the filter settings in the custom Visual? So not only receiving filtered data, but actually to read it somehow?&lt;/P&gt;&lt;P&gt;The custom visual should react to the filter, but not only to the new data provided. It is needed to navigate in a map in a read-only report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm correct the filter API, does not provide read functinality. The api only sets filters.&lt;/P&gt;&lt;P&gt;Also the InteractivityFilterService does not do the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { InteractivityFilterService } from "powerbi-visuals-utils-interactivityutils/lib/interactivityFilterService";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the options.jsonFilters property in the update-function is always empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw in an example the following: Capabilites.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"selfFilter": {
                    "type": {
                        "filter": {
                            "selfFilter": true
                        }
                    }
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not provide anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the following (which is also always empty)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; dataViewObjects.getValue(data.metadata.objects, Filter.filter)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone can provide an good example, because all examples from microsoft are outdated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 09:11:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Read-Filter-in-Custom-Visual/m-p/910553#M22091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-24T09:11:51Z</dc:date>
    </item>
  </channel>
</rss>

