<?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: Power BI Embedded Filter Problem in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55039#M1730</link>
    <description>&lt;P&gt;thanks for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;iframe.src=response.Report.embedUrl +"&amp;amp;$filter=CountryRegion/CountryRegionName eq 'United States'";&lt;/PRE&gt;&lt;P&gt;but doesen't work....&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2016 08:46:27 GMT</pubDate>
    <dc:creator>Knuckles</dc:creator>
    <dc:date>2016-08-03T08:46:27Z</dc:date>
    <item>
      <title>Power BI Embedded Filter Problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/54731#M1717</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try to create an angular 2 application with Power BI Embedded report.&lt;/P&gt;&lt;P&gt;I create a dashboard with a Report level filter on a Function Table that is used to retrive the data.&lt;/P&gt;&lt;P&gt;I use this code, with javascript, to set the report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var m = { 
                    action: "loadReport",
                    accessToken: response.AccessToken,
                    height: h, 
                    width: w,
                    oDataFilter:'CountryRegion eq "United States"'
             };&lt;/PRE&gt;&lt;P&gt;but when the report is show the filter is not set (but work when the user click on it)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 10:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/54731#M1717</guid>
      <dc:creator>Knuckles</dc:creator>
      <dc:date>2016-08-02T10:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Filter Problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/54880#M1727</link>
      <description>&lt;P&gt;The filter needs to be set as a query string parameter on the embedURL.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 21:49:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/54880#M1727</guid>
      <dc:creator>jocaplan-MSFT</dc:creator>
      <dc:date>2016-08-02T21:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Filter Problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55039#M1730</link>
      <description>&lt;P&gt;thanks for your reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;iframe.src=response.Report.embedUrl +"&amp;amp;$filter=CountryRegion/CountryRegionName eq 'United States'";&lt;/PRE&gt;&lt;P&gt;but doesen't work....&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55039#M1730</guid>
      <dc:creator>Knuckles</dc:creator>
      <dc:date>2016-08-03T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Filter Problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55107#M1731</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/12343"&gt;@Knuckles﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both adding the parameter in JS or adding query in embeded URL work in my test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JS, a format as below should work, DO NOT mess the single quote and double quotes. You can add an alert to debug the passed JSON.stringified message.&lt;/P&gt;
&lt;PRE&gt;&lt;STRIKE&gt;oDataFilter:'CountryRegion eq "United States"'&lt;/STRIKE&gt;&lt;BR /&gt;oDataFilter: "&amp;lt;table&amp;gt;/&amp;lt;column&amp;gt; eq '&amp;lt;filtervalue&amp;gt;'"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing important is that &lt;STRONG&gt;&amp;lt;table&amp;gt;/&amp;lt;column&amp;gt; is case-sensitive&lt;/STRONG&gt;. Make sure you've specified the correct names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55107#M1731</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-08-03T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Filter Problem</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55124#M1732</link>
      <description>&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem was t&lt;SPAN&gt;he single quote and double quotes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now all works!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:50:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Filter-Problem/m-p/55124#M1732</guid>
      <dc:creator>Knuckles</dc:creator>
      <dc:date>2016-08-03T09:50:09Z</dc:date>
    </item>
  </channel>
</rss>

