<?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: Filter Not Working (Javascript API) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filter-Not-Working-Javascript-API/m-p/492740#M15098</link>
    <description>&lt;P&gt;In case anyone else comes accross this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue was having the numeric value in double quotes. Instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;operator: "In",values: ["470"]};&lt;/PRE&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;PRE&gt;operator: "In",values: [470]};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 14:00:20 GMT</pubDate>
    <dc:creator>stevenamani</dc:creator>
    <dc:date>2018-08-17T14:00:20Z</dc:date>
    <item>
      <title>Filter Not Working (Javascript API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-Not-Working-Javascript-API/m-p/491903#M15067</link>
      <description>&lt;P&gt;I am using the Javascript API to embed a powerbi report however the filter is not affecting the result. The code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function getFilters () {
const filter1 = {$schema: "http://powerbi.com/product/schema#basic",target: {table: "Users",column: "ID"},operator: "In",values: ["470"]};
var allFilters = [filter1];
return allFilters;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above function is called from an updateEmbededDashboard function that contains&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; report.getFilters()
                    .then(function(filters) {
                        
                        var allFilters = getFilters();

                        filters.push(allFilters);
                        
                        if (allFilters != null) return report.setFilters(allFilters);
                    }).catch (function (error) {
                        console.log(error.message);
                    });&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Aug 2018 21:08:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-Not-Working-Javascript-API/m-p/491903#M15067</guid>
      <dc:creator>stevenamani</dc:creator>
      <dc:date>2018-08-16T21:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Not Working (Javascript API)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filter-Not-Working-Javascript-API/m-p/492740#M15098</link>
      <description>&lt;P&gt;In case anyone else comes accross this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue was having the numeric value in double quotes. Instead of&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;operator: "In",values: ["470"]};&lt;/PRE&gt;&lt;P&gt;It should be&lt;/P&gt;&lt;PRE&gt;operator: "In",values: [470]};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filter-Not-Working-Javascript-API/m-p/492740#M15098</guid>
      <dc:creator>stevenamani</dc:creator>
      <dc:date>2018-08-17T14:00:20Z</dc:date>
    </item>
  </channel>
</rss>

