<?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: Updating filter via JS results in duplication of filters in filter pane in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4993471#M64426</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507930"&gt;@ayush-mishra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for reaching out to the Microsoft Fabric Community forum.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The Replace filter API you are trying to use is not supported for report level, but is supported for Page level and visual level.&lt;BR /&gt;Instead of using Replace filter API, Please try removing the undesired filter first and then add the required filter using the API mentioned in the screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnmadadimsft_0-1770115665943.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1324357i8BFF039709BFF51F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnmadadimsft_0-1770115665943.png" alt="vnmadadimsft_0-1770115665943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Source:&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters" target="_blank"&gt;Use filters in a Power BI embedded analytics report | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 10:51:33 GMT</pubDate>
    <dc:creator>v-nmadadi-msft</dc:creator>
    <dc:date>2026-02-03T10:51:33Z</dc:date>
    <item>
      <title>Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4990721#M64421</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I am trying to update a filter in an embedded report for customer.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let ufilter = {
    "$schema": "http://powerbi.com/product/schema#basic",
    "target": {
        "table": "factGroup",
        "column": "Regulated/Unregulated",
        "groupedColumns": [
            {
                "table": "factGroup",
                "column": "Legal Status"
            }
        ]
    },
    "filterType": 1,
    "operator": "In",
    "values": [
        "Regulated"
    ],
    "requireSingleSelection": false
}

await report.updateFilters(models.FiltersOperations.Replace, [ufilter])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is causing the original filter that needs to be updated remain unaffected and adds a complete new filter for the same column with Regulated value.&amp;nbsp;&lt;BR /&gt;This doesn't look good as it's causing the duplicate column in filter pane.&lt;BR /&gt;&lt;BR /&gt;Is there anyway I can fix this? Also, what is the purpose of "groupedColumn" target?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 12:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4990721#M64421</guid>
      <dc:creator>ayush-mishra</dc:creator>
      <dc:date>2026-02-02T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4993471#M64426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507930"&gt;@ayush-mishra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for reaching out to the Microsoft Fabric Community forum.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The Replace filter API you are trying to use is not supported for report level, but is supported for Page level and visual level.&lt;BR /&gt;Instead of using Replace filter API, Please try removing the undesired filter first and then add the required filter using the API mentioned in the screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnmadadimsft_0-1770115665943.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1324357i8BFF039709BFF51F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnmadadimsft_0-1770115665943.png" alt="vnmadadimsft_0-1770115665943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Source:&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters" target="_blank"&gt;Use filters in a Power BI embedded analytics report | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this information helps. Please do let us know if you have any further queries.&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 10:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4993471#M64426</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2026-02-03T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4993644#M64428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I tried removing all the report filters and then re-adding them.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;await report.updateFilters(models.FiltersOperations.RemoveAll)

let ufilter = {
    "$schema": "http://powerbi.com/product/schema#basic",
    "target": {
        "table": "factGroup",
        "column": "Regulated/Unregulated",
        "groupedColumns": [
            {
                "table": "factGroup",
                "column": "Legal Status"
            }
        ]
    },
    "filterType": 1,
    "operator": "In",
    "values": [
        "Regulated"
    ],
    "requireSingleSelection": false
}

await report.updateFilters(models.FiltersOperations.Add, [ufilter])&lt;/LI-CODE&gt;&lt;P&gt;Using this approach resolved the duplication issue.&lt;BR /&gt;But now, when I get the filters using&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const updatedFilters = await report.getFilters()&lt;/LI-CODE&gt;&lt;P&gt;the updated filter doesn't have groupedColumn target.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "$schema": "http://powerbi.com/product/schema#basic",
    "target": {
        "table": "factGroup",
        "column": "Regulated/Unregulated"
    },
    "filterType": 1,
    "operator": "In",
    "values": [
        "Regulated"
    ],
    "requireSingleSelection": false
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not exactly sure how this groupedColumn target affects the report visual.&lt;BR /&gt;Any idea on what it does? Does it affect the report visuals?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 13:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4993644#M64428</guid>
      <dc:creator>ayush-mishra</dc:creator>
      <dc:date>2026-02-03T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4995144#M64437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507930"&gt;@ayush-mishra&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know the original duplicate issue is fixed.&lt;BR /&gt;The groupedColumns property is an optional part of the Power BI JavaScript filter schema and is intended to support grouped or derived columns. It does not affect standard report-level filtering and is often dropped when filters are normalized by the service.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 12:20:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/4995144#M64437</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2026-02-04T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/5000864#M64472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507930"&gt;@ayush-mishra&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 05:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/5000864#M64472</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2026-02-09T05:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updating filter via JS results in duplication of filters in filter pane</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/5012668#M64514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1507930"&gt;@ayush-mishra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 04:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Updating-filter-via-JS-results-in-duplication-of-filters-in/m-p/5012668#M64514</guid>
      <dc:creator>v-nmadadi-msft</dc:creator>
      <dc:date>2026-02-13T04:45:22Z</dc:date>
    </item>
  </channel>
</rss>

