<?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: BUG API Javascript Property 'table' does not exist on type 'IFilterGeneralTarget' in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1661784#M27809</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="278723" data-lia-user-login="Marco57" class="lia-mention lia-mention-user"&gt;Marco57&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if these will help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/targets" target="_self"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/targets&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters#advanced-filter" target="_self"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters#advanced-filter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 02:23:30 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-02-12T02:23:30Z</dc:date>
    <item>
      <title>BUG API Javascript Property 'table' does not exist on type 'IFilterGeneralTarget'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1656064#M27761</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calling on power bi client javascript library :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let newState: pbi.models.IAdvancedFilter;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on the interfaces, this library states that it extends IFilter interface:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;IFilter interface has a key called "target": of type&amp;nbsp;&lt;SPAN&gt;IFilterGeneralTarget&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;IFilterGeneralTarget can be of type IFilterTarget:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;IFilterTarget can be of type&amp;nbsp;&lt;SPAN&gt;IFilterColumnTarget&lt;/SPAN&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IFilterColumnTarget finally has a key "column":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;now the issue is why am I getting that my variable can't have a "column" key ?!:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any support.&lt;/P&gt;&lt;P&gt;Rgds, Marc.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 23:59:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1656064#M27761</guid>
      <dc:creator>Marco57</dc:creator>
      <dc:date>2021-02-09T23:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: BUG API Javascript Property 'table' does not exist on type 'IFilterGeneralTarget'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1661784#M27809</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="278723" data-lia-user-login="Marco57" class="lia-mention lia-mention-user"&gt;Marco57&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if these will help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/targets" target="_self"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/targets&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters#advanced-filter" target="_self"&gt;https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters#advanced-filter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 02:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1661784#M27809</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-02-12T02:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: BUG API Javascript Property 'table' does not exist on type 'IFilterGeneralTarget'</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1663719#M27830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182446" data-lia-user-login="V-lianl-msft" class="lia-mention lia-mention-user"&gt;V-lianl-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the issue I have, I define an empty advanced filter :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;slicerStateBetween: &amp;lt;pbi.models.IAdvancedFilter&amp;gt;{
        $schema: "http://powerbi.com/product/schema#advanced",
        conditions: [
          {
            operator: "GreaterThanOrEqual",
            value: null
          },
          {
            operator: "LessThanOrEqual",
            value: null
          }],
        filterType: 0,
        logicalOperator: "And",
        target: {
          column: "",
          table: "",
        }
      }&lt;/LI-CODE&gt;&lt;P&gt;I copy it into another variable :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let newState: pbi.models.IAdvancedFilter;
newState = this.reportAssets.slicer.slicerStateBetween;

newState.target.column = currentFilter.filter.NAME;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is hwere the error happen, I can't assign attribute column to target even if newState is of type IAdvancedFilter and as per documentation it contains target and column key inside of it:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const advancedFilter = {
  $schema: "http://powerbi.com/product/schema#advanced",
  target: {
    table: "Store",
    column: "Name"
  },
  logicalOperator: "Or",
  conditions: [
    {
      operator: "Contains",
      value: "Wash"
    },
    {
      operator: "Contains",
      value: "Park"
    }
  ],
  filterType: models.FilterType.AdvancedFilter
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 17:32:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/BUG-API-Javascript-Property-table-does-not-exist-on-type/m-p/1663719#M27830</guid>
      <dc:creator>Marco57</dc:creator>
      <dc:date>2021-02-12T17:32:35Z</dc:date>
    </item>
  </channel>
</rss>

