<?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 jquery filter not working on Embedded report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/313446#M9267</link>
    <description>&lt;P&gt;&amp;nbsp;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Report embedded into an MVC Web app, the problem is that my filter does not work, i have tried various methods to no avail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;

window.onload = function () {
var Filter1 = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "vw_NGO_Registrations",
column: "NGOName"
},
Operator: "In",
values: ["BADISA"]
}
var config = {
type: 'report',
accessToken: "@(Model.Token)",
embedUrl: "@Model.PBIReport.embedUrl",
id: "@Model.PBIReport.id",
filters: [Filter1],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);

});
});
};
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have also tried adding the following at the bottom of the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;report.on('loaded', event =&amp;gt; {
report.getFilters()
.then(filters =&amp;gt; {
filters.push(Filter1);
return report.setFilters(filters);&lt;/PRE&gt;&lt;P&gt;The report just keeps showing all the data, additionally, The filter pane does NOT show, i dont know if that has anything to do with it, even though i explicitly set filterPaneEnabled = true. Even when i remove the settings, it still wont show.&lt;/P&gt;&lt;P&gt;Even when i added the following, still no filter pane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div ID="reportContainer" style="width: 900px; height: 500px" powerbi-settings-nav-content-pane-enabled="true"   powerbi-settings-filter-pane-enabled="true"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 07:27:52 GMT</pubDate>
    <dc:creator>cranial3</dc:creator>
    <dc:date>2017-11-29T07:27:52Z</dc:date>
    <item>
      <title>jquery filter not working on Embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/313446#M9267</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Report embedded into an MVC Web app, the problem is that my filter does not work, i have tried various methods to no avail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;

window.onload = function () {
var Filter1 = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "vw_NGO_Registrations",
column: "NGOName"
},
Operator: "In",
values: ["BADISA"]
}
var config = {
type: 'report',
accessToken: "@(Model.Token)",
embedUrl: "@Model.PBIReport.embedUrl",
id: "@Model.PBIReport.id",
filters: [Filter1],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);

});
});
};
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have also tried adding the following at the bottom of the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;report.on('loaded', event =&amp;gt; {
report.getFilters()
.then(filters =&amp;gt; {
filters.push(Filter1);
return report.setFilters(filters);&lt;/PRE&gt;&lt;P&gt;The report just keeps showing all the data, additionally, The filter pane does NOT show, i dont know if that has anything to do with it, even though i explicitly set filterPaneEnabled = true. Even when i remove the settings, it still wont show.&lt;/P&gt;&lt;P&gt;Even when i added the following, still no filter pane.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div ID="reportContainer" style="width: 900px; height: 500px" powerbi-settings-nav-content-pane-enabled="true"   powerbi-settings-filter-pane-enabled="true"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 07:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/313446#M9267</guid>
      <dc:creator>cranial3</dc:creator>
      <dc:date>2017-11-29T07:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: jquery filter not working on Embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/314381#M9299</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/48253"&gt;@cranial3&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a Report embedded into an MVC Web app, the problem is that my filter does not work, i have tried various methods to no avail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;

window.onload = function () {
var Filter1 = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "vw_NGO_Registrations",
column: "NGOName"
},
Operator: "In",
values: ["BADISA"]
}
var config = {
type: 'report',
accessToken: "@(Model.Token)",
embedUrl: "@Model.PBIReport.embedUrl",
id: "@Model.PBIReport.id",
filters: [Filter1],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
var reportContainer = document.getElementById('reportContainer');
var report = powerbi.embed(reportContainer, config);

});
});
};
&amp;lt;/script&amp;gt;&lt;/PRE&gt;
&lt;P&gt;I have also tried adding the following at the bottom of the script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;report.on('loaded', event =&amp;gt; {
report.getFilters()
.then(filters =&amp;gt; {
filters.push(Filter1);
return report.setFilters(filters);&lt;/PRE&gt;
&lt;P&gt;The report just keeps showing all the data, additionally, The filter pane does NOT show, i dont know if that has anything to do with it, even though i explicitly set filterPaneEnabled = true. Even when i remove the settings, it still wont show.&lt;/P&gt;
&lt;P&gt;Even when i added the following, still no filter pane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;div ID="reportContainer" style="width: 900px; height: 500px" powerbi-settings-nav-content-pane-enabled="true"   powerbi-settings-filter-pane-enabled="true"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&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/48253"&gt;@cranial3&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How is it going on if you run the test &lt;A href="https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html" target="_self"&gt;embedding report demo&lt;/A&gt;? Does the filter pane show? By the way, what is the browser in your case, have you observed anything wrong in the tab of Console and Network of browser dev mode(F12).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 06:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/314381#M9299</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-11-30T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: jquery filter not working on Embedded report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/315266#M9330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No Filter Pane is shown when using the embedded report demo, it displayed the report exactly as in my browser.&lt;/P&gt;&lt;P&gt;I am using Chrome, i installed firefox, and viewing is the same in there too, no filter pane.&lt;/P&gt;&lt;P&gt;I checked the console, no errors except for "Slow network is detected".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 06:54:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/jquery-filter-not-working-on-Embedded-report/m-p/315266#M9330</guid>
      <dc:creator>cranial3</dc:creator>
      <dc:date>2017-12-01T06:54:52Z</dc:date>
    </item>
  </channel>
</rss>

