<?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 a value from Power BI Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/296369#M8724</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46029"&gt;@wesleyrbk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So I embedded a report and I would like to get a value from a card tile within the report for use outside the iframe. Is this possible?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46029"&gt;@wesleyrbk&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You can more or less get a value by capture the "&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;dataselected&lt;/A&gt;" event in &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript" target="_self"&gt;Power BI Javascript API&lt;/A&gt;. However, per my test, it doesn't work for a card visual.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;var reports = powerbi.embed(dashboardContainer, config);
	
reports.on('dataSelected', function(event)
{
var data = event.detail; 
         console.log(JSON.stringify(data, null, ' '));
		 
})&lt;/PRE&gt;</description>
    <pubDate>Sat, 04 Nov 2017 06:39:38 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-11-04T06:39:38Z</dc:date>
    <item>
      <title>Get a value from Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/295846#M8712</link>
      <description>&lt;P&gt;So I embedded a report and I would like to get a value from a card tile within the report for use outside the iframe. Is this possible?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 09:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/295846#M8712</guid>
      <dc:creator>wesleyrbk</dc:creator>
      <dc:date>2017-11-03T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value from Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/296369#M8724</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46029"&gt;@wesleyrbk&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So I embedded a report and I would like to get a value from a card tile within the report for use outside the iframe. Is this possible?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/46029"&gt;@wesleyrbk&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;You can more or less get a value by capture the "&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;dataselected&lt;/A&gt;" event in &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript" target="_self"&gt;Power BI Javascript API&lt;/A&gt;. However, per my test, it doesn't work for a card visual.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;var reports = powerbi.embed(dashboardContainer, config);
	
reports.on('dataSelected', function(event)
{
var data = event.detail; 
         console.log(JSON.stringify(data, null, ' '));
		 
})&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Nov 2017 06:39:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/296369#M8724</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-04T06:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get a value from Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/296655#M8735</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to do is get the dates that are selected by a custom visual called:&amp;nbsp;&lt;A title="Time Brush Slicer" href="https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380798?tab=Overview" target="_blank"&gt;Time Brush Slicer&lt;/A&gt;. Now I already tried the dataselected on that visual but it didn't give anything in return. How should I approach this problem? I basically just need the start date and the end date of the filtered data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: The custom visual performs a visual filter on the linechart. And as far as I know you can't get the filters on a visual level but only on report level. Am I right about that?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 08:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-a-value-from-Power-BI-Embedded/m-p/296655#M8735</guid>
      <dc:creator>wesleyrbk</dc:creator>
      <dc:date>2017-11-06T08:43:57Z</dc:date>
    </item>
  </channel>
</rss>

