<?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/1663719#M27830</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182446"&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>
    <dc:creator>Marco57</dc:creator>
    <dc:date>2021-02-12T17:32:35Z</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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco57_0-1612913942734.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451528i4FC6C4687D815A7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marco57_0-1612913942734.png" alt="Marco57_0-1612913942734.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco57_1-1612913993422.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451531i968665B6CA1881D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marco57_1-1612913993422.png" alt="Marco57_1-1612913993422.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco57_1-1612915149766.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451552i3B4FDDE8E70B556F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marco57_1-1612915149766.png" alt="Marco57_1-1612915149766.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 872px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451534iE87D6B47C1185EC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 468px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451544iD733B4526D8861CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&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;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco57_0-1612915074836.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/451551iD259EAD320EF18D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Marco57_0-1612915074836.png" alt="Marco57_0-1612915074836.png" /&gt;&lt;/span&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278723"&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="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/182446"&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>

