<?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: Sync between custom filter and slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/384776#M11425</link>
    <description>&lt;P&gt;How do you apply selection/filter in your custom visual?&lt;/P&gt;
&lt;P&gt;The slicer doesn't react on any kind of selection if is's applied via SelectionManager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We would recommend to start using &lt;A href="https://github.com/Microsoft/powerbi-visuals-sampleslicer/blob/master/doc/UsingAdvancedFilterAPI.md" target="_self"&gt;Advanced Filter API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 14:34:56 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-03-27T14:34:56Z</dc:date>
    <item>
      <title>Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/383688#M11400</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have custom visual which filters date and I also have regular slicer with date with date input and slider.&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date dd.png" style="width: 540px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/88097i5077B3C3E507CC78/image-size/large?v=v2&amp;amp;px=999" role="button" title="date dd.png" alt="date dd.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In left I have custom filter which selects specific range and on right I have regular slicer. Even though, I set interaction between them, regular slicer doesn't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make date input values change and slider, by using my custom visual?&amp;nbsp;&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>Mon, 26 Mar 2018 10:09:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/383688#M11400</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-03-26T10:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/384504#M11416</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/51907"&gt;@ysapiyev&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a good look at&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/Selection.md" target="_blank"&gt;Adding Selection and Interaction with Other Visuals&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 09:23:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/384504#M11416</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-03-27T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/384776#M11425</link>
      <description>&lt;P&gt;How do you apply selection/filter in your custom visual?&lt;/P&gt;
&lt;P&gt;The slicer doesn't react on any kind of selection if is's applied via SelectionManager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We would recommend to start using &lt;A href="https://github.com/Microsoft/powerbi-visuals-sampleslicer/blob/master/doc/UsingAdvancedFilterAPI.md" target="_self"&gt;Advanced Filter API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 14:34:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/384776#M11425</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-03-27T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/385255#M11440</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using selection manager.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To use advanced filter API, I should updateOnRangeSelectionChange formula with my own conditions, right? What it will return?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yerkhan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 06:08:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/385255#M11440</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-03-28T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386410#M11476</link>
      <description>&lt;P&gt;You are correct. The&amp;nbsp;updateOnRangeSelectonChange should be modified but it will return nothing&amp;nbsp;as type is void.&lt;/P&gt;
&lt;P&gt;The purpose of this function is to generate an&amp;nbsp;IAdvancedFilter and apply it via&amp;nbsp;applyAdvancedFilter.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 12.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 13:14:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386410#M11476</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-03-29T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386584#M11482</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found some code:&lt;/P&gt;&lt;PRE&gt;const relativeDateFilter: pbi.models.IRelativeDateFilter = {
  $schema: "http://powerbi.com/product/schema#relativeDate",
  target: {
    table: "Sales",
    column: "OrderDate"
  },
  operator: pbi.models.RelativeDateOperators.InLast,
  timeUnitsCount: 30,
  timeUnitType: pbi.models.RelativeDateFilterTimeUnit.Days,
  includeToday: true,
  filterType: pbi.models.FilterType.RelativeDate
};&lt;/PRE&gt;&lt;P&gt;Can I use it in filter? I want to be able to select last week. month, year.&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>Thu, 29 Mar 2018 17:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386584#M11482</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-03-29T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386913#M11487</link>
      <description>&lt;P&gt;Yes, I think so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 08:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/386913#M11487</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-03-30T08:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387028#M11497</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite confused about usage of Advanced filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In updateOnRangeSelectonChange there are several functions, which are located in sampleslicer.ts. Should I copy them to my code? Are they necessary?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried to build filter using powerbi-models but import of powerbi-models failed with error: "import cannot have reference to module". How it can be resolved?&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>Fri, 30 Mar 2018 11:53:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387028#M11497</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-03-30T11:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387434#M11507</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understood how to use advanced filter. However, I've faced new issue:&lt;/P&gt;&lt;P&gt;when I don't use date input, everything works fine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date_1.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/88979iC94D17C10D151685/image-size/large?v=v2&amp;amp;px=999" role="button" title="date_1.png" alt="date_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date_2.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/88980iF0897222BFB3B86A/image-size/large?v=v2&amp;amp;px=999" role="button" title="date_2.png" alt="date_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use date input, it stops changing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date_3.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/88981i36424AB6BD72024A/image-size/large?v=v2&amp;amp;px=999" role="button" title="date_3.png" alt="date_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How it can be fixed?&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>Sun, 01 Apr 2018 06:55:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387434#M11507</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-04-01T06:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between custom filter and slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387949#M11523</link>
      <description>&lt;P&gt;Could you please clarify what data input is? Are you talking about Power BI Slicer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently we would recommend to open Chrome Developer Tools and&amp;nbsp;turn on "Pause on exceptions" in the Sources tab.&lt;/P&gt;
&lt;P&gt;After that, try to replicate the issue and see if debugger will catch an exception in the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 11:55:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Sync-between-custom-filter-and-slicer/m-p/387949#M11523</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-04-02T11:55:42Z</dc:date>
    </item>
  </channel>
</rss>

