<?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: Doubt on filtering. It slows down the performance in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/4036266#M159964</link>
    <description>&lt;P&gt;Yes, it helped to improve the performance. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 05:53:12 GMT</pubDate>
    <dc:creator>Prima_</dc:creator>
    <dc:date>2024-07-11T05:53:12Z</dc:date>
    <item>
      <title>Doubt on filtering. It slows down the performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3990854#M154796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a main dashboard which displays weekly error and quality kpi's for countries . Have two other reports which computes two other kpi's. I want to display these two kpi's also in the main dashboard. So, I included these two datasets in the main dashboard. I want to show all these 4 kpi's in a visual. Filters are week and Country. If a select a week and country, the kpi's from the main dashboard are shown correctly but the kpi's from the other two datasets are not displayed correctly weekwise. It sums up for all weeks for the countries. I created a Country table with countries from all four kpi tables and a week table with weeks from all four kpi tables. And, have created a relationship of the Country field from the kpi tables to the Common Country table. Simillarly, have created a relationship of the week field from the kpi tables to the Common week table. I also created&amp;nbsp; a measure and included the filters&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%KPI3=&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;( ORDER&lt;/SPAN&gt;&lt;SPAN&gt;[READY]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;[TotalOrder&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ORDER'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ORDER&lt;/SPAN&gt;&lt;SPAN&gt;[week]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MainData&lt;/SPAN&gt;&lt;SPAN&gt;[Startclock Week]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;ORDER&lt;/SPAN&gt;&lt;SPAN&gt;[Country]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MainData&lt;/SPAN&gt;&lt;SPAN&gt;[Country]&lt;/SPAN&gt;&lt;SPAN&gt;))). Now, it shows all the data correctly but since the filter is used like this in few other computations, the performance is very slow. I believe, this is not needed and Power BI feature should be able to handle these cases automatically. Kindly assist.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3990854#M154796</guid>
      <dc:creator>Prima_</dc:creator>
      <dc:date>2024-06-13T10:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on filtering. It slows down the performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3992216#M154941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362707" data-lia-user-login="Prima_" class="lia-mention lia-mention-user"&gt;Prima_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can modify your formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SelectedWeekKPI3 = 
VAR SelectedWeek = SELECTEDVALUE(DateTable[Week])
VAR SelectedCountry = SELECTEDVALUE(CountryTable[Country])
RETURN
    CALCULATE(
        SUM(KPI3[KPI3_Value]),
        KPI3[Week] = SelectedWeek,
        KPI3[Country] = SelectedCountry
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 02:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3992216#M154941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-14T02:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on filtering. It slows down the performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3993004#M154985</link>
      <description>&lt;P&gt;Will try. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 09:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/3993004#M154985</guid>
      <dc:creator>Prima_</dc:creator>
      <dc:date>2024-06-14T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt on filtering. It slows down the performance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/4036266#M159964</link>
      <description>&lt;P&gt;Yes, it helped to improve the performance. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 05:53:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doubt-on-filtering-It-slows-down-the-performance/m-p/4036266#M159964</guid>
      <dc:creator>Prima_</dc:creator>
      <dc:date>2024-07-11T05:53:12Z</dc:date>
    </item>
  </channel>
</rss>

