<?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 Re: Advanced filter for array selection in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884867#M21827</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/54293"&gt;@v-yuta-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I got it. Thanks anyway.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yerkhan&lt;/P&gt;</description>
    <pubDate>Fri, 27 Dec 2019 05:45:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-27T05:45:25Z</dc:date>
    <item>
      <title>Advanced filter for array selection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/883377#M21802</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to use advanced filter for array selection, but I have some difficulties. I used following code for date selection:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;this.applyDatePeriod(this.start_var, this.end_var, target, true);

public applyDatePeriod(startDate: Date, endDate: Date, target: IFilterColumnTarget, isUserSelection: boolean): void {
            this.applyFilter(isUserSelection);

            // If startDate and EndDate is null then ClearSelection is triggered
            const filter: IAdvancedFilter = new window["powerbi-models"].AdvancedFilter(
                target,
                "And",
                {
                    operator: "GreaterThan",
                    value: startDate
                        ? startDate.toJSON()
                        : null
                },
                {
                    operator: "LessThan",
                    value: endDate
                        ? endDate.toJSON()
                        : null
                });

            this.host.applyJsonFilter(
                filter,
                "general",
                "filter",
                (startDate &amp;amp;&amp;amp; endDate)
                    ? FilterAction.merge
                    : FilterAction.remove
            );
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use same approach for array selection?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yerkhan&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 05:52:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/883377#M21802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-24T05:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced filter for array selection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884307#M21813</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to the sample code &lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" color="#000000"&gt;&lt;EM&gt;&lt;STRONG&gt;Community Support Team _ Jimmy Tao&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" color="#000000"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:01:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884307#M21813</guid>
      <dc:creator>v-yuta-msft</dc:creator>
      <dc:date>2019-12-26T06:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced filter for array selection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884309#M21814</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/54293"&gt;@v-yuta-msft&lt;/a&gt;&amp;nbsp;Hello&lt;/P&gt;&lt;P&gt;Thanks for your answer. But this is not exactly what I'm looking for. I need custom visual.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yerkhan&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884309#M21814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-26T06:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced filter for array selection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884347#M21815</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems there's no "array" section in the advanced filter object model. You can refer to the model source code.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://microsoft.github.io/PowerBI-visuals/tutorials/building-slicer-visual/using-the-advanced-filter-api/" target="_blank"&gt;https://microsoft.github.io/PowerBI-visuals/tutorials/building-slicer-visual/using-the-advanced-filter-api/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" color="#000000"&gt;&lt;EM&gt;&lt;STRONG&gt;Community Support Team _ Jimmy Tao&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="times new roman,times" color="#000000"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 07:01:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884347#M21815</guid>
      <dc:creator>v-yuta-msft</dc:creator>
      <dc:date>2019-12-26T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced filter for array selection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884867#M21827</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/54293"&gt;@v-yuta-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I got it. Thanks anyway.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yerkhan&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 05:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Advanced-filter-for-array-selection/m-p/884867#M21827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-27T05:45:25Z</dc:date>
    </item>
  </channel>
</rss>

