<?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 Power BI Report level Filters not working properly in ASP.NET MVC application in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/364536#M10889</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My ASP.NET MVC application's URL use three parameters, that is &lt;STRONG&gt;Region&lt;/STRONG&gt;, &lt;STRONG&gt;Subregion&lt;/STRONG&gt; and &lt;STRONG&gt;Pagenumber&lt;/STRONG&gt; from Power BI basic filter. When I run application which gives right results for &lt;STRONG&gt;Region&lt;/STRONG&gt; and &lt;STRONG&gt;Pagenumber,&amp;nbsp;&lt;/STRONG&gt;but nothing showing for &lt;STRONG&gt;Subregion&lt;/STRONG&gt;. My code has given below. I can't figure it out what is wrong here. Help will be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// for region ,subregion and page level filtering&lt;BR /&gt;for (var i = 0; i &amp;lt; hashes.length; i++) {&lt;/P&gt;&lt;P&gt;hash = hashes[i].split('=');&lt;BR /&gt;if (hash[0] == "region") {&lt;BR /&gt;region.push(hash[1]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (hash[0] == "subregion") {&lt;BR /&gt;subRegion.push(hash[1]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (hash[0] == "page") {&lt;BR /&gt;defaultPage = "ReportSection" + hash[1];&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (region[0] == undefined) {&lt;BR /&gt;region = [];&lt;BR /&gt;region.push("VNW","VMP","VGW","VGN","VGE","SOA","QLD","Other","Office","NSW","Display");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (subRegion[0] == undefined) {&lt;BR /&gt;subRegion = [];&lt;BR /&gt;subRegion.push("VNW","VMW","VMP","VMN","VME","VIC","VCW","VCS","VCN","SOA","QLD","Other","NSW","Display");&lt;BR /&gt;}&lt;BR /&gt;const filterRegion = {&lt;BR /&gt;$schema: "&lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;",&lt;BR /&gt;target: {&lt;BR /&gt;table: "Region Lookup",&lt;BR /&gt;column: "Region"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: region&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const filterSubRegion = {&lt;BR /&gt;$schema: "&lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;",&lt;BR /&gt;target: {&lt;BR /&gt;table: "Sub Region Lookup",&lt;BR /&gt;column: "Sub Region"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: subRegion&lt;BR /&gt;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Embed configuration used to describe the what and how to embed.&lt;BR /&gt;// This object is used when calling powerbi.embed.&lt;BR /&gt;// This also includes settings and options such as filters.&lt;BR /&gt;// You can find more information at &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details&lt;/A&gt;.&lt;BR /&gt;var config = {&lt;BR /&gt;type: 'report',&lt;BR /&gt;tokenType: models.TokenType.Embed,&lt;BR /&gt;accessToken: accessToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: embedReportId,&lt;BR /&gt;permissions: models.Permissions.All,&lt;BR /&gt;settings: {&lt;BR /&gt;filterPaneEnabled: false,&lt;BR /&gt;navContentPaneEnabled: false&lt;BR /&gt;},&lt;BR /&gt;pageName: defaultPage,&lt;BR /&gt;filters: [filterRegion, filterSubRegion]&lt;BR /&gt;};&lt;BR /&gt;// Get a reference to the embedded report HTML element&lt;BR /&gt;var reportContainer = $('#reportContainer')[0];&lt;BR /&gt;// Embed the report and display it within the div container.&lt;BR /&gt;var report = powerbi.embed(reportContainer, config)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Sun, 25 Feb 2018 01:58:18 GMT</pubDate>
    <dc:creator>Palazhi</dc:creator>
    <dc:date>2018-02-25T01:58:18Z</dc:date>
    <item>
      <title>Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/364536#M10889</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;My ASP.NET MVC application's URL use three parameters, that is &lt;STRONG&gt;Region&lt;/STRONG&gt;, &lt;STRONG&gt;Subregion&lt;/STRONG&gt; and &lt;STRONG&gt;Pagenumber&lt;/STRONG&gt; from Power BI basic filter. When I run application which gives right results for &lt;STRONG&gt;Region&lt;/STRONG&gt; and &lt;STRONG&gt;Pagenumber,&amp;nbsp;&lt;/STRONG&gt;but nothing showing for &lt;STRONG&gt;Subregion&lt;/STRONG&gt;. My code has given below. I can't figure it out what is wrong here. Help will be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// for region ,subregion and page level filtering&lt;BR /&gt;for (var i = 0; i &amp;lt; hashes.length; i++) {&lt;/P&gt;&lt;P&gt;hash = hashes[i].split('=');&lt;BR /&gt;if (hash[0] == "region") {&lt;BR /&gt;region.push(hash[1]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (hash[0] == "subregion") {&lt;BR /&gt;subRegion.push(hash[1]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;if (hash[0] == "page") {&lt;BR /&gt;defaultPage = "ReportSection" + hash[1];&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (region[0] == undefined) {&lt;BR /&gt;region = [];&lt;BR /&gt;region.push("VNW","VMP","VGW","VGN","VGE","SOA","QLD","Other","Office","NSW","Display");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (subRegion[0] == undefined) {&lt;BR /&gt;subRegion = [];&lt;BR /&gt;subRegion.push("VNW","VMW","VMP","VMN","VME","VIC","VCW","VCS","VCN","SOA","QLD","Other","NSW","Display");&lt;BR /&gt;}&lt;BR /&gt;const filterRegion = {&lt;BR /&gt;$schema: "&lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;",&lt;BR /&gt;target: {&lt;BR /&gt;table: "Region Lookup",&lt;BR /&gt;column: "Region"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: region&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const filterSubRegion = {&lt;BR /&gt;$schema: "&lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;",&lt;BR /&gt;target: {&lt;BR /&gt;table: "Sub Region Lookup",&lt;BR /&gt;column: "Sub Region"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: subRegion&lt;BR /&gt;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Embed configuration used to describe the what and how to embed.&lt;BR /&gt;// This object is used when calling powerbi.embed.&lt;BR /&gt;// This also includes settings and options such as filters.&lt;BR /&gt;// You can find more information at &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details&lt;/A&gt;.&lt;BR /&gt;var config = {&lt;BR /&gt;type: 'report',&lt;BR /&gt;tokenType: models.TokenType.Embed,&lt;BR /&gt;accessToken: accessToken,&lt;BR /&gt;embedUrl: embedUrl,&lt;BR /&gt;id: embedReportId,&lt;BR /&gt;permissions: models.Permissions.All,&lt;BR /&gt;settings: {&lt;BR /&gt;filterPaneEnabled: false,&lt;BR /&gt;navContentPaneEnabled: false&lt;BR /&gt;},&lt;BR /&gt;pageName: defaultPage,&lt;BR /&gt;filters: [filterRegion, filterSubRegion]&lt;BR /&gt;};&lt;BR /&gt;// Get a reference to the embedded report HTML element&lt;BR /&gt;var reportContainer = $('#reportContainer')[0];&lt;BR /&gt;// Embed the report and display it within the div container.&lt;BR /&gt;var report = powerbi.embed(reportContainer, config)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2018 01:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/364536#M10889</guid>
      <dc:creator>Palazhi</dc:creator>
      <dc:date>2018-02-25T01:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/365798#M10892</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56112"&gt;@Palazhi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The main code above looks fine to me, and it works fine in my test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried debugging the code to see what's wrong with it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, could you try&amp;nbsp;setting&amp;nbsp;&lt;SPAN&gt;filterPaneEnabled to true in the configure to see what's in the Filter Pane&lt;/SPAN&gt;&amp;nbsp;with the code?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;PRE&gt;var config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.All,
settings: {
&lt;STRONG&gt;filterPaneEnabled: true,&lt;/STRONG&gt;
navContentPaneEnabled: false
},
pageName: defaultPage,
filters: [filterRegion, filterSubRegion]
};&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filterpane1.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/83861iFB71209BBAE997B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="filterpane1.PNG" alt="filterpane1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:21:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/365798#M10892</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-02-27T06:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366088#M10904</link>
      <description>Hi,&lt;BR /&gt;Thank you for responding back to me. I have made filterpane true, now getting error in filter pane saying ''This filter can't be used since the correaponding field is invalid '. By default subregion selects ''All'' option.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2018 11:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366088#M10904</guid>
      <dc:creator>Palazhi</dc:creator>
      <dc:date>2018-02-27T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366889#M10925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56112"&gt;@Palazhi&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;I have made filterpane true, now getting error in filter pane saying ''This filter can't be used since the correaponding field is invalid '. By default subregion selects ''All'' option.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can reproduce the same issue when the table name or column name in the filter is not match with the real table name and column name in your model. Note that they are &lt;STRONG&gt;case sensitive&lt;/STRONG&gt;. So could you go to check if&amp;nbsp;&lt;SPAN&gt;the table name and column name are correctly set in your filter?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;const filterSubRegion = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
&lt;STRONG&gt;table: "Sub Region Lookup",
column: "Sub Region"&lt;/STRONG&gt;
},
operator: "In",
values: subRegion

};&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:58:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366889#M10925</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-02-28T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366947#M10928</link>
      <description>Hi there,&lt;BR /&gt;You were right. In my region filter, the condition is Region ''in'' but for subregion the condition is ''notIn'' .First I tried to change the code as from operator: "In" to operator:"NotIn", but it didnt work. Then I have changed in Power BI Desktop then published it. Now it's working. Thank you so much for your support&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/366947#M10928</guid>
      <dc:creator>Palazhi</dc:creator>
      <dc:date>2018-02-28T10:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/367447#M10953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/56112"&gt;@Palazhi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great to hear the problem got resolved! Could you accept your reply above as solution to close this thread?&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 01:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/367447#M10953</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-03-01T01:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/368369#M10983</link>
      <description>&lt;P&gt;Please see my screenshot below showing incorrect subregion&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="img.png" style="width: 461px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/84462iABF0FDB44CF8D8BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="img.png" alt="img.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 05:18:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/368369#M10983</guid>
      <dc:creator>Palazhi</dc:creator>
      <dc:date>2018-03-02T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report level Filters not working properly in ASP.NET MVC application</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/372783#M11117</link>
      <description>&lt;P&gt;That error didn't go away. It says 'This filter can't be used since the corresponding field is invalid'. Thank You&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 03:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Report-level-Filters-not-working-properly-in-ASP-NET/m-p/372783#M11117</guid>
      <dc:creator>Palazhi</dc:creator>
      <dc:date>2018-03-09T03:18:56Z</dc:date>
    </item>
  </channel>
</rss>

