<?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: Add event handler for selectionChanged event in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4086136#M54628</link>
    <description>&lt;P&gt;Thank you for the response&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;. Will try this&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2024 07:26:48 GMT</pubDate>
    <dc:creator>JagadishNallami</dc:creator>
    <dc:date>2024-08-07T07:26:48Z</dc:date>
    <item>
      <title>Add event handler for selectionChanged event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4084033#M54606</link>
      <description>&lt;P&gt;I am working on some enbedded power bi report. From documentation I see we can listen for the changes made to a slicer selected values by selectionChanged event. I tried using that but is not working always. It is working randomly. I also didn't find any example showing the full working code for this. Could anyone help on this by providing the working code for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below inside the report loaded event. I also tried attaching the event listener for slicer but that didn't worked too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;report.on("selectionChanged", function (event) {&lt;BR /&gt;console.log(event);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 12:15:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4084033#M54606</guid>
      <dc:creator>JagadishNallami</dc:creator>
      <dc:date>2024-08-06T12:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add event handler for selectionChanged event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4086044#M54624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/714675"&gt;@JagadishNallami&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description,&amp;nbsp;&lt;SPAN&gt;it looks like you're trying to handle the '&lt;EM&gt;selectionChanged&lt;/EM&gt;' event for a Power BI embedded report and it is not working. Please change the codes as below and check if it can work...&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Attach event listener for the report loaded event
report.on('loaded', function () {
    console.log('Report loaded');
    attachSelectionChangedEvent(report);
  });

// Function to attach the selectionChanged event handler
function attachSelectionChangedEvent(report) {
  report.on('selectionChanged', function (event) {
    console.log('Selection changed:', event);
  } );&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 06:57:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4086044#M54624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-07T06:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add event handler for selectionChanged event</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4086136#M54628</link>
      <description>&lt;P&gt;Thank you for the response&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;. Will try this&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 07:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Add-event-handler-for-selectionChanged-event/m-p/4086136#M54628</guid>
      <dc:creator>JagadishNallami</dc:creator>
      <dc:date>2024-08-07T07:26:48Z</dc:date>
    </item>
  </channel>
</rss>

