<?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: PowerBI Embedded - Dedicated Capacity Filter Issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/884486#M21825</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both Tenant and Dedicated Capacity are host are in the same location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmm I&amp;nbsp; well the issue only happened when ticking the box in the workspace to a dedicated capacity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh Griggs&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 10:20:32 GMT</pubDate>
    <dc:creator>JoshoDotNZ</dc:creator>
    <dc:date>2019-12-26T10:20:32Z</dc:date>
    <item>
      <title>PowerBI Embedded - Dedicated Capacity Filter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/882396#M21792</link>
      <description>&lt;P&gt;Hey Squad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just ticked the box for my workspace to go to a dedicated capacity....&lt;/P&gt;&lt;P&gt;I am now getting this error&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Uncaught 
Array(1)
0:
message: "filters property is invalid"
__proto__: Object
length: 1
__proto__: Array(0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Javascript&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;script src="Scripts/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;

        &amp;lt;div id="embedContainer" style="margin-top:10px; width:100%; height:700px"&amp;gt;&amp;lt;/div&amp;gt;

        &amp;lt;% Dim Model As New PowerBI.PowerBiConfig%&amp;gt;
        &amp;lt;% Model.Main()%&amp;gt;
        

        &amp;lt;% If Model.EmbedToken.Token IsNot Nothing Then %&amp;gt;
        &amp;lt;script&amp;gt;
        //Filtering Variables
        //var division = " = SessionHelper.DivisionID";
        var division = "SSA";
       // var department = " = Mid(SessionHelper.UserPermissionString, 69, 1&amp;gt;";
        var department = "";
        // Read embed application token from Model
        var accessToken = "&amp;lt;% = Model.EmbedToken.Token%&amp;gt;";

        // Read embed URL from Model
        var embedUrl = "&amp;lt;% = Model.EmbedUrl%&amp;gt;";

        // Read report Id from Model
        var embedReportId = "&amp;lt;% = Model.EmbedId%&amp;gt;";

        // Get models. models contains enums that can be used.
        var models = window['powerbi-client'].models;

        // Embed configuration used to describe the what and how to embed.
        // This object is used when calling powerbi.embed.
        // This also includes settings and options such as filters.
        // You can find more information at https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details.

        const divisionFilter = {
            $schema: "http://powerbi.com/product/schema#basic",
            target: {
                table: "PBI_Division",
                column: "Divisions"
            },
            operator: "In",
            values: [division]
        };

        const departmentFilter = {
            $schema: "http://powerbi.com/product/schema#basic",
            target: {
                table: "PBI_Department",
                column: "Departments"
            },
            operator: "In",
            values: [department]
        };


        var config = {
            type: 'report',
            tokenType: models.TokenType.Embed,
            accessToken: accessToken,
            embedUrl: embedUrl,
            id: embedReportId,
            permissions: models.Permissions.All,
            filters: [divisionFilter, departmentFilter],
            settings: {
                filterPaneEnabled: true,
                navContentPaneEnabled: true
            }
        };

        if (division == "" &amp;amp;&amp;amp; department == "") {
            config.filters = [];
        } else if (division == "") {
            config.filters = [departmentFilter];
        } else if (department == "") {
            config.filters = [divisionFilter];
        }

        
        // Get a reference to the embedded report HTML element
        var reportContainer = $('#embedContainer')[0];
    
          // Embed the report and display it within the div container.
        var report = powerbi.embed(reportContainer, config);
    

        &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;I have never have so many issues before moving from a working test envoriment to a paid version which stops working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Josh Griggs&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 04:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/882396#M21792</guid>
      <dc:creator>JoshoDotNZ</dc:creator>
      <dc:date>2019-12-23T04:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded - Dedicated Capacity Filter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/884459#M21820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/173512"&gt;@JoshoDotNZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure the filter issue is caused by the dedicated capacity. Still if you are dedicated capacity in other region than your tenant location, probabily you have to read this&lt;A href="https://docs.microsoft.com/en-us/power-bi/service-admin-premium-multi-geo#limitations-and-considerations" target="_self"&gt; limiations&lt;/A&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-inline" image-alt="Capture.JPG" style="width: 981px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/220775i54D7B9DDBD93AAAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.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>Thu, 26 Dec 2019 09:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/884459#M21820</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-12-26T09:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Embedded - Dedicated Capacity Filter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/884486#M21825</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100012"&gt;@Jayendran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both Tenant and Dedicated Capacity are host are in the same location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmmm I&amp;nbsp; well the issue only happened when ticking the box in the workspace to a dedicated capacity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh Griggs&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 10:20:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Embedded-Dedicated-Capacity-Filter-Issue/m-p/884486#M21825</guid>
      <dc:creator>JoshoDotNZ</dc:creator>
      <dc:date>2019-12-26T10:20:32Z</dc:date>
    </item>
  </channel>
</rss>

