<?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: Problem using more than one filter on the same Embedded exporting all the Vis in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2016339#M31120</link>
    <description>&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;powerbi.min.js:4 Uncaught TypeError: Cannot read property 'powerBiEmbed' of undefined&lt;BR /&gt;at t.get (powerbi.min.js:4)&lt;BR /&gt;at ReplaceFilters1 (SellOut:2339)&lt;BR /&gt;at HTMLButtonElement.onclick (SellOut:1)&lt;BR /&gt;t.get @ powerbi.min.js:4&lt;BR /&gt;ReplaceFilters1 @ SellOut:2339&lt;BR /&gt;onclick @ SellOut:1&lt;/P&gt;</description>
    <pubDate>Sat, 14 Aug 2021 08:53:06 GMT</pubDate>
    <dc:creator>Hugo_Gallardo</dc:creator>
    <dc:date>2021-08-14T08:53:06Z</dc:date>
    <item>
      <title>Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/1985385#M30785</link>
      <description>&lt;P&gt;We are facing the following problems using more than one filter in our development.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using ASP.net core 3.0, Razor and Bootstrap 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;We have extracted every single visual from a Power BI report. In this report we have a slider for selecting the interval of weeks&amp;nbsp; between 1 and 52 which alters every visual in the report, then the year or years selection filter. Also we have selectors for family of product and then other for product itself. Then we can select from another selector the clients that sells those products. And also, we have geographic filters for map view which also affects the visuals Each selections refreshes in real time the whole dashboard.&amp;nbsp; We need to reproduce these actions on the embedded final product.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The client requires to embed every single visual In a web app. They don’t want to embed the full report because they want a very specific UI/UX, that’s why they don’t want to embed all.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From point one we have the following problems:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;First we have the slider filter and then the Anio (Anio year which is different from Calendar year and it’s calculated within the PowerBI). The second filter will be executed by a button as a Basic PBI Filter.&lt;/LI&gt;&lt;OL&gt;&lt;LI&gt;In the first image we have the value 2020 and 2021 on the filter, then on Image 2 we have executed the filter code, and instead of changing from 2021 to 2020 the whole views, it duplicates the value on the drop down filter as 2021 and 2021 only without effect on any visual other than the slider filter.&lt;/LI&gt;&lt;LI&gt;We need to show the selection instead of duplicating values on the selector, affecting the visuals or visual.&lt;/LI&gt;&lt;LI&gt;We have both filters on separated functions within our Javascript.&lt;/LI&gt;&lt;/OL&gt;&lt;LI&gt;As I told you in our scenario, we need to apply “n” filters within the web page, as the user is selecting them, preferent without an action button. We only have examples using separated functions for every filter, how do we manage to catch every filter by selection?. Do we need to use a single function? Can the y be casted separately by section?&lt;/LI&gt;&lt;LI&gt;Do you have examples for PBI Embedded for the use of 2 to “n” filters within a web page?&lt;/LI&gt;&lt;LI&gt;We need also that each time we select a filter it stores the other filters selection, because when is applied separately, deletes the previous filter.&lt;/LI&gt;&lt;LI&gt;How do we apply “n” filters in the on load function of the web page&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the code for the Anio filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function filter1() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const filter1 = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $schema: "&lt;A href="http://powerbi.com/product/schema#basic" target="_blank" rel="noopener"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table: "tCalendarioNestleN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column: "Anio"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "In",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values: [2020]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedContainerPortafolio = $('#embedContainerValueVolume')[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reportPortafolio = powerbi.get(embedContainerPortafolio);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportPortafolio.setFilters([filter1])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 17:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/1985385#M30785</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-07-28T17:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/1991732#M30854</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/316515"&gt;@Hugo_Gallardo&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;It sounds like you want to use multiple filters to your report based on setfilters function.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;After I check the documents, I found its parameter is a filter array, so I think you can create an array to store multiple filters that you can define and can use it in filter parameter to use in setfilters:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/control-report-filters#filters-apis" target="_blank"&gt;Use filters when embedding a report in Power BI embedded analytics | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 02:07:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/1991732#M30854</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-02T02:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2001812#M30947</link>
      <description>&lt;P&gt;Hi, let me show you our use case:&lt;/P&gt;&lt;P&gt;We are embedding different visuals&amp;nbsp; on one razor page, and we are also using javascript API on a asp.net core razor page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the webapp, we have a slider and a selector (the selector is not showed cause the value is setted up on the “aplicar filtro” button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to use “N” tables on one action so we can do the parametrics on every visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function filter1() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var a = $("#In1").val();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var b = $("#In2").val();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const filter1 = [{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $schema: &lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table: "tCalendarioNestleN",&amp;nbsp;&amp;nbsp; //this is the first table we call with the slider, this actually is the only one that works and when is selected, it actually affects every visual on the screen. But this is not the only table we call. This is the first filter we send and works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column: "SemanaNestle"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logicalOperator: "And",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conditions: [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "GreaterThanOrEqual",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "LessThanOrEqual",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $schema: &lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table: "tProductos", // this is the second table we call, the column should affect as well the whole screen. We can actually affect a lot of tables within power BI but when we embed every visual we can’t get the same effect. We found this code on your database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column: "cveCategoria"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logicalOperator : "In",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conditions:[{value : "SP"}] // this is the value setted up, we will have checkboxes for the user to select N values in an array which will be values “SP”, “MG”, etc and the user can see N table filters affecting that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedContainerC = $('#ChartFR')[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reportC= powerbi.get(embedContainerC);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportC.setFilters([filter1])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, we have two buttons affecting the dashboard separately and it &amp;nbsp;works but we need that the user can select n values that affects table columns and does shows up in the webapp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are both filters working out in separate calls but we need to do every filter on every table in just one call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function filter1() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var a = $("#In1").val();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var b = $("#In2").val();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const filter1 = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $schema: &lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table: "tCalendarioNestleN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column: "SemanaNestle"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logicalOperator: "And",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conditions: [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "GreaterThanOrEqual",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "LessThanOrEqual",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value: b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedContainerC = $('#ChartFR')[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reportC= powerbi.get(embedContainerC);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportC.setFilters([filter1])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function filter2() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const filter2 = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $schema: &lt;A href="http://powerbi.com/product/schema#basic" target="_blank"&gt;http://powerbi.com/product/schema#basic&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; target: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table: "tProductos",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column: "cveCategoria"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operator: "In",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values: ["SP"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedContainerPortafolio = $('#ChartFR')[0];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var reportPortafolio = powerbi.get(embedContainerPortafolio);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportPortafolio.setFilters([filter2])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can call separate filters but we need them altogether.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We saw in your forum that this can’t be done but we don’t believe that’s accurate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:45:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2001812#M30947</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-06T07:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2007572#M31025</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/316515"&gt;@Hugo_Gallardo&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I found you define multiple functions with filter structures to apply filters effect to your report, so I recommend you to transform them into one const variable and use it to set/update filters.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;function ReplaceFilters() {
    var a = $("#In1").val();
    var b = $("#In2").val();

    const filterList = [{
        $schema: "http: //powerbi.com/product/schema#basic",
        target: {
            table: "tCalendarioNestleN",
            column: "SemanaNestle"
        },
        logicalOperator: "And",
        conditions: [
            {
                operator: "GreaterThanOrEqual",
                value: a
            },
            {
                operator: "LessThanOrEqual",
                value: b
            }
        ]
    }, {
        $schema: "http: //powerbi.com/product/schema#basic",
        target: {
            table: "tProductos",
            column: "cveCategoria"
        },
        operator: "In",
        values: ["SP"]

    }];

    var embedContainerPortafolio = $('#ChartFR')[0];
    var reportPortafolio = powerbi.get(embedContainerPortafolio);

    // Replace all report's filters.
    try {
        reportPortafolio.updateFilters(models.FiltersOperations.ReplaceAll, [filterList]);
    } catch (errors) {
        console.log(errors);
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://playground.powerbi.com/dev-sandbox" target="_blank"&gt;Power BI Playground - Developer Sandbox&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 07:58:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2007572#M31025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-10T07:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2016339#M31120</link>
      <description>&lt;P&gt;I get the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;powerbi.min.js:4 Uncaught TypeError: Cannot read property 'powerBiEmbed' of undefined&lt;BR /&gt;at t.get (powerbi.min.js:4)&lt;BR /&gt;at ReplaceFilters1 (SellOut:2339)&lt;BR /&gt;at HTMLButtonElement.onclick (SellOut:1)&lt;BR /&gt;t.get @ powerbi.min.js:4&lt;BR /&gt;ReplaceFilters1 @ SellOut:2339&lt;BR /&gt;onclick @ SellOut:1&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 08:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2016339#M31120</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-14T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2016341#M31121</link>
      <description>&lt;P&gt;FUNCTION }&lt;/P&gt;&lt;P&gt;var reportPortafolio = powerbi.get(embedContainerPortafolio); // Replace all report's filters.&lt;/P&gt;&lt;P&gt;try { reportPortafolio.updateFilters(models.FiltersOperations.ReplaceAll, [filterList]); } catch (errors) { console.log(errors); }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 09:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2016341#M31121</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-14T09:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025417#M31216</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/316515"&gt;@Hugo_Gallardo&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you modify the code to use setFilters function instead of the updateFitlers, did this issue still appears?&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    // Replace all report's filters.
    try {
        reportPortafolio.setFilters([filterList]);
    } catch (errors) {
        console.log(errors);
    }&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:07:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025417#M31216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-19T08:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025588#M31219</link>
      <description>&lt;P&gt;I am not using&amp;nbsp;embedContainerPortafolio because I am using every visual embbed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My actual function is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function ReplaceFilters() {&lt;BR /&gt;var a = $("#In1").val();&lt;BR /&gt;var b = $("#In2").val();&lt;BR /&gt;const filterList = [&lt;BR /&gt;{&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: "tCalendarioNestleN",&lt;BR /&gt;column: "SemanaNestle"&lt;BR /&gt;},&lt;BR /&gt;logicalOperator: "And",&lt;BR /&gt;conditions: [&lt;BR /&gt;{&lt;BR /&gt;operator: "GreaterThanOrEqual",&lt;BR /&gt;value: a&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;operator: "LessThanOrEqual",&lt;BR /&gt;value: b&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&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: "tProductos",&lt;BR /&gt;column: "cveCategoria"&lt;BR /&gt;},&lt;BR /&gt;operator: "In", values: ["SP"]&lt;BR /&gt;}];&lt;BR /&gt;var GraficoUno = $('#TendenciaSOut')[0];&lt;BR /&gt;var reportVisual = powerbi.get(GraficoUno);&lt;BR /&gt;try { reportVisual.setFilters(models.FiltersOperations.ReplaceAll.FiltersOperations.ReplaceAll, [filterList]); }&lt;BR /&gt;catch (errors) { console.log(errors); }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I just make an embedded zone as Portfolio? can you show me the link to that?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 09:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025588#M31219</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-19T09:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025744#M31220</link>
      <description>&lt;P&gt;powerbi.min.js:4 Uncaught (in promise) [{…}]0: {message: "input must be an object"}length: 1[[Prototype]]: Array(0)&lt;BR /&gt;l @ powerbi.min.js:4&lt;BR /&gt;Promise.then (async)&lt;BR /&gt;s @ powerbi.min.js:4&lt;BR /&gt;(anonymous) @ powerbi.min.js:4&lt;BR /&gt;o @ powerbi.min.js:4&lt;BR /&gt;e.setFilters @ powerbi.min.js:4&lt;BR /&gt;ReplaceFilters @ SellOut:2430&lt;BR /&gt;onclick @ SellOut:669&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 10:07:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025744#M31220</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-19T10:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025885#M31221</link>
      <description>&lt;P&gt;SellOut:599 Uncaught ReferenceError: filter1 is not defined&lt;BR /&gt;at HTMLButtonElement.onclic&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2025885#M31221</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-19T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2029141#M31256</link>
      <description>&lt;P&gt;Ok last update, we changed the code as follows but only does the last filter, but it shows us the kind of json it expects in the following image. Do we need to change the json?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const filterList = ([{&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: "tCalendarioNestleN",&lt;BR /&gt;column: "SemanaNestle"&lt;BR /&gt;}&lt;BR /&gt;logicalOperator: "And",&lt;BR /&gt;conditions: [{&lt;BR /&gt;operator: "GreaterThanOrEqual",&lt;BR /&gt;value: 1&lt;BR /&gt;}, {&lt;BR /&gt;operator: "LessThanOrEqual",&lt;BR /&gt;value: 5&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&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: "tProductos",&lt;BR /&gt;column: "cveCategoria"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: ["PURINA"]&lt;BR /&gt;}]);&lt;/P&gt;&lt;P&gt;var embedContainerPortafolio = $('#TendenciaSOut')[0];&lt;BR /&gt;var reportPortafolio = powerbi.get(embedContainerPortafolio); // Replace all report's filters.&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;reportPortafolio.setFilters([filterList]);&lt;BR /&gt;} catch (errors) {&lt;BR /&gt;console.log(errors);&lt;BR /&gt;}&lt;BR /&gt;/* catch (errors) { console.log(errors); }*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="8387630a-e8da-490b-9a95-6c0f180be935.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/577308i14026A64C067DF65/image-size/large?v=v2&amp;amp;px=999" role="button" title="8387630a-e8da-490b-9a95-6c0f180be935.png" alt="8387630a-e8da-490b-9a95-6c0f180be935.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 07:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2029141#M31256</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-21T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded: Problem using more than one filter on the same Embedded exporting all the Vis</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2029163#M31257</link>
      <description>&lt;P&gt;Hi, we solved it it was the [] characters when sending the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the solution!! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function ReplaceFilters() {&lt;BR /&gt;//var a = $("#In1").val();&lt;BR /&gt;//var b = $("#In2").val();&lt;BR /&gt;const filterList = [{&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: "tCalendarioNestleN",&lt;BR /&gt;column: "SemanaNestle"&lt;BR /&gt;},&lt;BR /&gt;logicalOperator: "And",&lt;BR /&gt;conditions: [{&lt;BR /&gt;operator: "GreaterThanOrEqual",&lt;BR /&gt;value: 1&lt;BR /&gt;}, {&lt;BR /&gt;operator: "LessThanOrEqual",&lt;BR /&gt;value: 5&lt;BR /&gt;}]&lt;BR /&gt;},&lt;BR /&gt;{&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: "tProductos",&lt;BR /&gt;column: "cveCategoria"&lt;BR /&gt;},&lt;BR /&gt;operator: "In",&lt;BR /&gt;values: ["PURINA"]&lt;BR /&gt;}];&lt;/P&gt;&lt;P&gt;var embedContainerPortafolio = $('#TendenciaSOut')[0];&lt;BR /&gt;var reportPortafolio = powerbi.get(embedContainerPortafolio); // Replace all report's filters.&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt;reportPortafolio.setFilters( filterList);&lt;BR /&gt;// reportPortafolio.setFilters([filterList]); this was the one you sent us.&lt;BR /&gt;} catch (errors) {&lt;BR /&gt;console.log(errors);&lt;BR /&gt;}&lt;BR /&gt;/* catch (errors) { console.log(errors); }*/&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 08:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Problem-using-more-than-one-filter-on-the-same/m-p/2029163#M31257</guid>
      <dc:creator>Hugo_Gallardo</dc:creator>
      <dc:date>2021-08-21T08:25:46Z</dc:date>
    </item>
  </channel>
</rss>

