<?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: event.detail object does not give me dataPoints values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/97549#M3427</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17745"&gt;@JohnKris﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is a feature not implemented yet. Check "&lt;EM&gt;&lt;STRONG&gt;**values** array (In Progress)&lt;/STRONG&gt;&lt;/EM&gt;" at &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;Handling Events&lt;/A&gt;. T&lt;SPAN&gt;he development team said&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/issues/98" target="_self"&gt;it will take at least a few weeks until a fix gets to production&lt;/A&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2016 08:54:57 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2016-12-05T08:54:57Z</dc:date>
    <item>
      <title>event.detail object does not give me dataPoints values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/96372#M3408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have embedded a powerBI report with JavaScript and I am able to set a function that gives me the event.detail data printed out to a separate div element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the function that does this:&lt;/P&gt;&lt;PRE&gt;//This function run when data is selected in my embedded PowerBI report&lt;BR /&gt;
function initializeDataSelection(report, $dataSelectedContainer) {
   report.on('dataSelected', event =&amp;gt; {
         var data = event.detail;
         $dataSelectedContainer.text(JSON.stringify(data, null, ' '));
      });
   }&lt;/PRE&gt;&lt;P&gt;When I click on some data in my PowerBI report, the following is printed out to my dataSelectedContainer div:&lt;/P&gt;&lt;PRE&gt;{
  "report": {
    "id": "anonymized",
    "displayName": "anonymized"
  },
  "page": {
    "name": "ReportSection",
    "displayName": "anonymized"
  },
  "visual": {
    "name": null,
    "title": "anonymized",
    "type": "slicer"
  },
  "dataPoints": [
    {
      "identity": [
        {
          "target": {
            "table": "anonymized",
            "column": "anonymized"
          },
          "equals": "TESTVARIABLE"
        }
      ],
      &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"values": []&lt;/STRONG&gt;&lt;/FONT&gt;
    }
  ],
  "regions": null,
  "filters": []
}&lt;/PRE&gt;&lt;P&gt;The data i need is the dataPoint "values": [] (shown in red above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;P&gt;1. Is this feature not supported yet?&lt;/P&gt;&lt;P&gt;2. Is this the wrong object to use to retrieve the dataPoints[0].values array?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 10:29:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/96372#M3408</guid>
      <dc:creator>JohnKris</dc:creator>
      <dc:date>2016-12-28T10:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: event.detail object does not give me dataPoints values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/97549#M3427</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17745"&gt;@JohnKris﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is a feature not implemented yet. Check "&lt;EM&gt;&lt;STRONG&gt;**values** array (In Progress)&lt;/STRONG&gt;&lt;/EM&gt;" at &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;Handling Events&lt;/A&gt;. T&lt;SPAN&gt;he development team said&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/issues/98" target="_self"&gt;it will take at least a few weeks until a fix gets to production&lt;/A&gt;.&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 08:54:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/97549#M3427</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-05T08:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: event.detail object does not give me dataPoints values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/106876#M3730</link>
      <description>&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two questions:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Could you ask the development team for a date/week as to when the **values** array will be fixed?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Is it possible to catch deselect event? (when you click e.g. a bar graph the first time it, and then clicking it again, i.e. deselecting)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 10:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/106876#M3730</guid>
      <dc:creator>JohnKris</dc:creator>
      <dc:date>2016-12-28T10:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: event.detail object does not give me dataPoints values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/107281#M3747</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17745"&gt;@JohnKris&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for the update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two questions:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Could you ask the development team for a date/week as to when the **values** array will be fixed?&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Is it possible to catch deselect event? (when you click e.g. a bar graph the first time it, and then clicking it again, i.e. deselecting)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;1.We don't contact the development team directly, to get any update, you can&amp;nbsp;follow &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/issues/98" target="_self"&gt;the bug track on github&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2.So far it seems impossible. I'm going to escalate a content request for more detailed documents on Power BI Javascript API.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 10:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/event-detail-object-does-not-give-me-dataPoints-values/m-p/107281#M3747</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-12-29T10:04:26Z</dc:date>
    </item>
  </channel>
</rss>

