<?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: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4716703#M61563</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1239451" data-lia-user-login="DavidAnthony" class="lia-mention lia-mention-user"&gt;DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 10:25:27 GMT</pubDate>
    <dc:creator>v-echaithra</dc:creator>
    <dc:date>2025-06-02T10:25:27Z</dc:date>
    <item>
      <title>How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4710148#M61453</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi everyone, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I'm working on a Power BI custom visual and trying to implement a filter that only applies to my specific visual, without affecting other visuals on the same page. Below is the code I'm currently using to apply the filter:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;const dataTarget = [{ table , column }];
const dataValues = [value];

try {
  let filter = {
    $schema: "https://powerbi.com/product/schema#tuple",
    filterType: 6,
    operator: "In",
    target: dataTarget,
    values: dataValues,
  };

  host.applyJsonFilter(
    filter,
    "general",
    "filter",
    powerbi.FilterAction.merge
  );
} catch (error) {
  console.error("Filter error:", error);
}&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The issue is that when I apply this filter using &lt;/SPAN&gt;&lt;SPAN class=""&gt;host.applyJsonFilter&lt;/SPAN&gt;&lt;SPAN class=""&gt;, it affects all visuals on the page that share the same data source, not just my custom visual. I want the filter to be isolated to my visual only. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I modify my code or approach to ensure the filter only impacts my custom visual, leaving other visuals on the page unaffected? Any advice or examples would be greatly appreciated! &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 May 2025 09:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4710148#M61453</guid>
      <dc:creator>DavidAnthony</dc:creator>
      <dc:date>2025-05-28T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4710381#M61461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1239451" data-lia-user-login="DavidAnthony" class="lia-mention lia-mention-user"&gt;DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to Microsoft Community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;Try local filtering inside your visual logic, where it filters data post dataView load, you must handle the filtering inside your visual logic, not through applyJsonFilter.&lt;/P&gt;
&lt;P&gt;While building the visual, apply your own filtering logic to the dataView before rendering.&lt;/P&gt;
&lt;P&gt;Refer this document for implementing Data view:&amp;nbsp;&lt;A href="https://shetland.azurewebsites.net/2021/02/18/power-bi-custom-visual-part-4-accessing-the-dataview/" target="_blank"&gt;Power BI Custom Visual Part 4 - Accessing the DataView - Shetland Data&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post helps, please give us Kudos and consider marking it Accept as solution to assist other members in finding it more easily.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 11:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4710381#M61461</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-05-28T11:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4711201#M61472</link>
      <description>&lt;P&gt;Thanks for your reply&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 04:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4711201#M61472</guid>
      <dc:creator>DavidAnthony</dc:creator>
      <dc:date>2025-05-29T04:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4716703#M61563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1239451" data-lia-user-login="DavidAnthony" class="lia-mention lia-mention-user"&gt;DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 10:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4716703#M61563</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-06-02T10:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4720542#M61617</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1239451" data-lia-user-login="DavidAnthony" class="lia-mention lia-mention-user"&gt;DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:20:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4720542#M61617</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-06-05T04:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Apply a Filter to a Specific Power BI Custom Visual Without Affecting Other Visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4724971#M61690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1239451" data-lia-user-login="DavidAnthony" class="lia-mention lia-mention-user"&gt;DavidAnthony&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?&lt;BR /&gt;If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Chaithra.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 05:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Apply-a-Filter-to-a-Specific-Power-BI-Custom-Visual/m-p/4724971#M61690</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-06-09T05:42:00Z</dc:date>
    </item>
  </channel>
</rss>

