<?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: Export filtered dataset programmatically? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/334642#M9909</link>
    <description>&lt;P&gt;Hello, We want to export data for specific tile from report via Javacsript api. Le us know how to implement this. Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 05:42:20 GMT</pubDate>
    <dc:creator>marappb</dc:creator>
    <dc:date>2018-01-09T05:42:20Z</dc:date>
    <item>
      <title>Export filtered dataset programmatically?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/162256#M5440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose I use PowerBI service or embedded and want to send table visual rows to some other web service.&amp;nbsp;How can I do it? &amp;nbsp;I was considering custom R-script or visual, but the network is blocked in the service. &amp;nbsp;With PowerBI embedded, there is no API function for this, I can only get a list of applied filters. And apparently I cannot directly access the report iframe by javascript. &amp;nbsp;Are there any workarounds or is it fundamental limitation?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 20:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/162256#M5440</guid>
      <dc:creator>Oussov</dc:creator>
      <dc:date>2017-04-20T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export filtered dataset programmatically?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/163091#M5464</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/5507"&gt;@Oussov&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose I use PowerBI service or embedded and &lt;STRONG&gt;want to send table visual rows to some other web service&lt;/STRONG&gt;.&amp;nbsp;How can I do it? &amp;nbsp;I was considering custom R-script or visual, but the network is blocked in the service. &amp;nbsp;With PowerBI embedded, there is no API function for this, I can only get a list of applied filters. And apparently I cannot directly access the report iframe by javascript. &amp;nbsp;Are there any workarounds or is it fundamental limitation?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When embedding Power BI reports with &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript" target="_self"&gt;PowerBI Javascript API&lt;/A&gt;, There's an event called "&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Handling-Events" target="_self"&gt;dataSelected&lt;/A&gt;", It can capture the seleced data. eg, when clicking on a histogram, the selected data gets captured.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when clicking on a table visual, there no such event triggered. A workaround I can think of is using a column chart that shows the same data in your table visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This&amp;nbsp; &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript" target="_self"&gt;PowerBI Javascript API&lt;/A&gt;&amp;nbsp;can be applied to embed reports from both Power BI Service and Power BI Embedded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/38287iEEC1CCCB8E44E732/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

  &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;
     

&amp;lt;script type="text/javascript"&amp;gt;
window.onload = function () {
 
var embedConfiguration = {
    type: 'report',
    accessToken: 'yourToken',
    id: 'yourReportID',
    embedUrl: 'https://app.powerbi.com/reportEmbed'	 
}; 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);

 var reportPages; 
  

report.on('dataSelected', function(event)
{
var data = event.detail;
		 
         console.log(JSON.stringify(data, null, ' '));
		 
});
 ;
 

}
&amp;lt;/script&amp;gt;

&amp;lt;div  id="reportContainer"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 07:00:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/163091#M5464</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-04-23T07:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export filtered dataset programmatically?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/165160#M5511</link>
      <description>&lt;P&gt;Thank you very much for the idea. &amp;nbsp;However is not it so that the data captured event will show aggregated data used to visualize a column rather than the underlying table rows?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 19:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/165160#M5511</guid>
      <dc:creator>Oussov</dc:creator>
      <dc:date>2017-04-26T19:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export filtered dataset programmatically?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/334642#M9909</link>
      <description>&lt;P&gt;Hello, We want to export data for specific tile from report via Javacsript api. Le us know how to implement this. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 05:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-filtered-dataset-programmatically/m-p/334642#M9909</guid>
      <dc:creator>marappb</dc:creator>
      <dc:date>2018-01-09T05:42:20Z</dc:date>
    </item>
  </channel>
</rss>

