<?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: Get selected item after filtering using context menu in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2119963#M32266</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/177236"&gt;@lucmax&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The context menu is governed by the main window and the visual only has the option to display it (with the option of passing a selection ID in order to trigger enable data point functionality for end users). There is currently no support for obtaining information or events (e.g. through callbacks) from this menu.&lt;/P&gt;
&lt;P&gt;As you've probably observed, including/excluding data points will cause Power BI to employ a visual-level filter for those conditions. As this shown in the filter pane and is external to the visual's dataset there is no current way of telling that these filters are in-place from within a visual; an exception being if your visual is designed to work as a slicer (but then only knows about the filters it has explicitly set rather than those imposed by the main window or other slicers).&lt;/P&gt;
&lt;P&gt;If you want to be able to determine this, then it would need to be a feature request. It could be worth framing this is to obtain details of any visual level filters that are applied to the visual as this might cover additional cases other than the context menu events. This might be seen as giving the visual more data than it should technically know about, but that's a call for MS. I would personally love to see some kind of feature parity with Power BI Embedded here, as it can create all kinds of potentially useful additions for visuals.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 20:29:56 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2021-10-06T20:29:56Z</dc:date>
    <item>
      <title>Get selected item after filtering using context menu</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2038223#M31346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to get information about the selection that gets created when including/excluding a datapoint using a context menu?&lt;/P&gt;&lt;P&gt;We have a custom visual and need to know, if the user included/excluded a datapoint using the context menu so we can show a button to reset this selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the selectionManager.clear() method isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 15:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2038223#M31346</guid>
      <dc:creator>lucmax</dc:creator>
      <dc:date>2021-08-25T15:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected item after filtering using context menu</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2042031#M31383</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/177236"&gt;@lucmax&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think you can check the following link about the data point selections on custom visual if it meets to your requirement:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/selection-api" target="_blank"&gt;Power BI visual data point selections - Power BI | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 06:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2042031#M31383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T06:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected item after filtering using context menu</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2051037#M31476</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/177236"&gt;@lucmax&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Did this link help with your scenario? if that is the case, you can consider Kudo or accept this to help others who faced similar requirements.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these also don't help, please share more detailed information for your requirements to help us clarify your scenario and test.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 09:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2051037#M31476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-01T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected item after filtering using context menu</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2119522#M32255</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;unfoutunatly it did not help. What we actually need to is either get the selected item when clicking on the filter buttons within the context menu, or to disable/hide the buttons when creating it. Maybe there is a way to disable/hide the buttons within the context menu?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;lucmax&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2119522#M32255</guid>
      <dc:creator>lucmax</dc:creator>
      <dc:date>2021-10-06T15:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get selected item after filtering using context menu</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2119963#M32266</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/177236"&gt;@lucmax&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The context menu is governed by the main window and the visual only has the option to display it (with the option of passing a selection ID in order to trigger enable data point functionality for end users). There is currently no support for obtaining information or events (e.g. through callbacks) from this menu.&lt;/P&gt;
&lt;P&gt;As you've probably observed, including/excluding data points will cause Power BI to employ a visual-level filter for those conditions. As this shown in the filter pane and is external to the visual's dataset there is no current way of telling that these filters are in-place from within a visual; an exception being if your visual is designed to work as a slicer (but then only knows about the filters it has explicitly set rather than those imposed by the main window or other slicers).&lt;/P&gt;
&lt;P&gt;If you want to be able to determine this, then it would need to be a feature request. It could be worth framing this is to obtain details of any visual level filters that are applied to the visual as this might cover additional cases other than the context menu events. This might be seen as giving the visual more data than it should technically know about, but that's a call for MS. I would personally love to see some kind of feature parity with Power BI Embedded here, as it can create all kinds of potentially useful additions for visuals.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-selected-item-after-filtering-using-context-menu/m-p/2119963#M32266</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-10-06T20:29:56Z</dc:date>
    </item>
  </channel>
</rss>

