<?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: Adding Custom Filter to Embed report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/124752#M4307</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/21017"&gt;@phaneendhrav&lt;/a&gt;&lt;/P&gt;&lt;P&gt;No I wasnt able to reach at a viable solution at the time last tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per their response,&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;The problem now is, there's a bug that stops the filters properties from working, check &lt;A title="" href="https://github.com/Microsoft/powerbi-models/issues/16" target="_self" rel="nofollow noopener noreferrer"&gt;validateReportLoad incorrectly returns schema errors for valid filters&lt;/A&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;. The workaround is, as your mentioned, set the filter after loaded&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The bug could have been fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if you are implementing it correctly and yet not able to get the filter in place, then lets conclude the bug still exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You might want to try the workaround I tried mentioned in my query itself, although it wasnt a viable solution for me&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 07:05:12 GMT</pubDate>
    <dc:creator>shivprasads</dc:creator>
    <dc:date>2017-02-09T07:05:12Z</dc:date>
    <item>
      <title>Adding Custom Filter to Embed report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90192#M3199</link>
      <description>&lt;P&gt;I am working on a demo project which uses the powerbi.js file to embed the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var reportConfig = {
                settings: {
                    filterPaneEnabled: true
                }                
            };

var report = powerbi.embed(reportElement, reportConfig);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to&amp;nbsp;create a filter object and set it to the reportConfig's property so the report gets loaded along with the filter.&lt;/P&gt;&lt;P&gt;Below is the basic filter I am creating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; var basicFilterdemo = {
                $schema: "http://powerbi.com/product/schema#basic",
                target: {
                    table: "Query1",
                    column: "Email"
                },
                operator: 'In',
                values: ['test@gmail.com']
            };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me get a way to configure the filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;setting&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var reportConfig = {
                settings: {
                    filterPaneEnabled: true
                },&lt;BR /&gt;               basicFilter:basicFilterdemo
            };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dint work and also how do I set the level(Report/Page) at which this filter would be set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;calling addFilter() inside&amp;nbsp;report.on('loaded',function() works fine but the original report is first loaded and stays there for a couple of seconds and then the change occurs. So that isnt a viable option for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 10:57:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90192#M3199</guid>
      <dc:creator>shivprasads</dc:creator>
      <dc:date>2016-11-16T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Filter to Embed report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90847#M3224</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15791"&gt;@shivprasads﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a filter and apply it to the filters properties of the embed configuration. Check&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details" target="_self"&gt;Embed Configuration Details&lt;/A&gt;.&lt;BR /&gt;The problem now is, there's a bug that stops the filters properties from working, check &lt;A href="https://github.com/Microsoft/powerbi-models/issues/16" target="_self"&gt;validateReportLoad incorrectly returns schema errors for valid filters&lt;/A&gt;. The workaround is, as your mentioned, set the filter after loaded.&lt;BR /&gt;&lt;BR /&gt;Regarding&amp;nbsp;&lt;SPAN&gt;how to set the level(Report/Page), check &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Understanding-the-object-hierarchy" target="_self"&gt;Understanding the object hierarchy&lt;/A&gt;, Both Report and Page have the setfilters function.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90847#M3224</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-11-17T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Filter to Embed report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90896#M3226</link>
      <description>&lt;P&gt;So you mean the entire filter property isnt working for now when setting it up in&amp;nbsp;the embed configuration.&lt;/P&gt;&lt;P&gt;And the way I have done with the function being called at the load event is the way we need to do, at least for now?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 10:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/90896#M3226</guid>
      <dc:creator>shivprasads</dc:creator>
      <dc:date>2016-11-17T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Filter to Embed report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/124712#M4303</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15791"&gt;@shivprasads&lt;/a&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also facing similar issue. Did you get the solution?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 05:24:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/124712#M4303</guid>
      <dc:creator>phaneendhrav</dc:creator>
      <dc:date>2017-02-09T05:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Filter to Embed report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/124752#M4307</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/21017"&gt;@phaneendhrav&lt;/a&gt;&lt;/P&gt;&lt;P&gt;No I wasnt able to reach at a viable solution at the time last tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per their response,&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;The problem now is, there's a bug that stops the filters properties from working, check &lt;A title="" href="https://github.com/Microsoft/powerbi-models/issues/16" target="_self" rel="nofollow noopener noreferrer"&gt;validateReportLoad incorrectly returns schema errors for valid filters&lt;/A&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;. The workaround is, as your mentioned, set the filter after loaded&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The bug could have been fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But if you are implementing it correctly and yet not able to get the filter in place, then lets conclude the bug still exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You might want to try the workaround I tried mentioned in my query itself, although it wasnt a viable solution for me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 07:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Adding-Custom-Filter-to-Embed-report/m-p/124752#M4307</guid>
      <dc:creator>shivprasads</dc:creator>
      <dc:date>2017-02-09T07:05:12Z</dc:date>
    </item>
  </channel>
</rss>

