<?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: Report Filtering in Power BI embedded. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/201066#M6420</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/33823"&gt;@shwetak&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Tried this, but still the results are the same...... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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/33823"&gt;@shwetak&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What does the console output? Press F12 in Chrome and reload your page.&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/47465i6B7DCACE462019FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 07:45:26 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-06-26T07:45:26Z</dc:date>
    <item>
      <title>Report Filtering in Power BI embedded.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/199507#M6363</link>
      <description>&lt;P&gt;I have published report &amp;amp; embedded&amp;nbsp;it in my HTML&amp;nbsp;snippet. which works fine at the initial level. data loads perfectly. Getting issue when trying to apply filters on it.&lt;/P&gt;&lt;P&gt;Below is my code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script&amp;gt;
		var txtAccessToken = 'eyJrIjoiOTQ2OWMzMTgtODdlMi00YTlmLTljYjUtYTc2MDcxYmM2ZDUxIiwidCI6IjhhZDJkNjdmLWY4NjQtNDkzZi1iN2I5LWI2ODEzODU0N2JlMSJ9';
		var txtEmbedUrl = 'https://app.powerbi.com/view?r=eyJrIjoiOTQ2OWMzMTgtODdlMi00YTlmLTljYjUtYTc2MDcxYmM2ZDUxIiwidCI6IjhhZDJkNjdmLWY4NjQtNDkzZi1iN2I5LWI2ODEzODU0N2JlMSJ9';
		var txtEmbedReportId = 'ae9dba68-2335-47e5-bd25-f733d76803bc';
		 
		var models = window['powerbi-client'].models;
		var permissions = models.Permissions.All;
		
		var config= {
			type: 'report',
			accessToken: txtAccessToken,
			embedUrl: txtEmbedUrl,
			id: txtEmbedReportId,
			permissions: permissions,
			settings: {
				filterPaneEnabled: true,
				navContentPaneEnabled: true
			}
		};
		 
		
		
		var reportContainer = $('#reportContainer')[0];
		var report = powerbi.embed(reportContainer, config);
		
		 const filter = {
			  $schema: "http://powerbi.com/product/schema#basic",
			  target: {
				table: "Query1",
				column: "id"
			  },
			  operator: "In",
			  values: [80]
		};
		var reports = powerbi.embeds[0];
            if (reports) {
                reports.setFilters([filter])
                    .then(function (result) {
                        console.log(result);
                    })
                    .catch(function (errors) {
                        console.log(errors);
                    });
            }
 &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance, Let me know what I am missing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 14:01:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/199507#M6363</guid>
      <dc:creator>shwetak</dc:creator>
      <dc:date>2017-06-22T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Report Filtering in Power BI embedded.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/200962#M6416</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/33823"&gt;@shwetak&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have published report &amp;amp; embedded&amp;nbsp;it in my HTML&amp;nbsp;snippet. which works fine at the initial level. data loads perfectly. Getting issue when trying to apply filters on it.&lt;/P&gt;
&lt;P&gt;Below is my code,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt;
		var txtAccessToken = 'eyJrIjoiOTQ2OWMzMTgtODdlMi00YTlmLTljYjUtYTc2MDcxYmM2ZDUxIiwidCI6IjhhZDJkNjdmLWY4NjQtNDkzZi1iN2I5LWI2ODEzODU0N2JlMSJ9';
		var txtEmbedUrl = 'https://app.powerbi.com/view?r=eyJrIjoiOTQ2OWMzMTgtODdlMi00YTlmLTljYjUtYTc2MDcxYmM2ZDUxIiwidCI6IjhhZDJkNjdmLWY4NjQtNDkzZi1iN2I5LWI2ODEzODU0N2JlMSJ9';
		var txtEmbedReportId = 'ae9dba68-2335-47e5-bd25-f733d76803bc';
		 
		var models = window['powerbi-client'].models;
		var permissions = models.Permissions.All;
		
		var config= {
			type: 'report',
			accessToken: txtAccessToken,
			embedUrl: txtEmbedUrl,
			id: txtEmbedReportId,
			permissions: permissions,
			settings: {
				filterPaneEnabled: true,
				navContentPaneEnabled: true
			}
		};
		 
		
		
		var reportContainer = $('#reportContainer')[0];
		var report = powerbi.embed(reportContainer, config);
		
		 const filter = {
			  $schema: "http://powerbi.com/product/schema#basic",
			  target: {
				table: "Query1",
				column: "id"
			  },
			  operator: "In",
			  values: [80]
		};
		var reports = powerbi.embeds[0];
            if (reports) {
                reports.setFilters([filter])
                    .then(function (result) {
                        console.log(result);
                    })
                    .catch(function (errors) {
                        console.log(errors);
                    });
            }
 &amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance, Let me know what I am missing.&amp;nbsp;&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/33823"&gt;@shwetak&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What's going on if put the filter in the embed option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;		
 const filter = {
			  $schema: "http://powerbi.com/product/schema#basic",
			  target: {
&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;		     table: "Query1",&lt;/FONT&gt;
				&lt;FONT size="5"&gt;column: "id"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;
			  },
			  operator: "In",
			  values: [80]
		};

		var config= {
			type: 'report',
			accessToken: txtAccessToken,
			embedUrl: txtEmbedUrl,
			id: txtEmbedReportId,
			permissions: permissions,
                       &lt;FONT size="5"&gt;&lt;STRONG&gt; filters:[filter],&lt;/STRONG&gt;&lt;/FONT&gt;
			settings: {
				filterPaneEnabled: true,
				navContentPaneEnabled: true
			}
		};
		 
		
		
		var reportContainer = $('#reportContainer')[0];
		var report = powerbi.embed(reportContainer, config);
		
		&lt;/PRE&gt;
&lt;P&gt;Also note that the table name/column name are case sensitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 06:01:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/200962#M6416</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-26T06:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report Filtering in Power BI embedded.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/200995#M6418</link>
      <description>&lt;P&gt;Tried this, but still the results are the same...... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 06:32:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/200995#M6418</guid>
      <dc:creator>shwetak</dc:creator>
      <dc:date>2017-06-26T06:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Report Filtering in Power BI embedded.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/201066#M6420</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/33823"&gt;@shwetak&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Tried this, but still the results are the same...... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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/33823"&gt;@shwetak&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;What does the console output? Press F12 in Chrome and reload your page.&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/47465i6B7DCACE462019FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 07:45:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/201066#M6420</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-06-26T07:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Report Filtering in Power BI embedded.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/201237#M6425</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PowerBI_Error.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/47508i1E6244B6E7A9DE30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PowerBI_Error.png" alt="PowerBI_Error.png" /&gt;&lt;/span&gt;&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-center" image-alt="PowerBIFilterError.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/47510i8EAF2BBA582FCCF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PowerBIFilterError.jpg" alt="PowerBIFilterError.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 11:33:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Report-Filtering-in-Power-BI-embedded/m-p/201237#M6425</guid>
      <dc:creator>shwetak</dc:creator>
      <dc:date>2017-06-26T11:33:04Z</dc:date>
    </item>
  </channel>
</rss>

