<?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: How can i optimized this dax without using summarize. This is taking too much time to load. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-i-optimized-this-dax-without-using-summarize-This-is/m-p/3030540#M103541</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the inner FILTER is the oart of the code that consumes most of the time. It includes the evaluation of two measures at each iteration. I see that this filter is absolutely not required. The table is already filtered by the year and week available in the current filter context.&amp;nbsp;&lt;BR /&gt;I guess by removing it, the results shall remain unchanged.&amp;nbsp;&lt;BR /&gt;Single Tran1 =&lt;BR /&gt;VAR table1 =&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;V_STORE_TRAN_FACT,&lt;BR /&gt;V_STORE_TRAN_FACT[STORE_KEY],&lt;BR /&gt;V_STORE_TRAN_FACT[TRANSACTIONID],&lt;BR /&gt;"T1", SUM ( 'V_STORE_TRAN_FACT'[TRANS_QTY] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS ( FILTER ( table1, [T1] = 1 ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 07:40:20 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-01-19T07:40:20Z</dc:date>
    <item>
      <title>How can i optimized this dax without using summarize. This is taking too much time to load.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-i-optimized-this-dax-without-using-summarize-This-is/m-p/3030470#M103539</link>
      <description>&lt;P&gt;Single Tran1 =&lt;BR /&gt;Var table1=&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;FILTER(V_STORE_TRAN_FACT,'V_STORE_TRAN_FACT'[Year]=[FY] &amp;amp;&amp;amp; 'V_STORE_TRAN_FACT'[Week2]=[WK] ),&lt;BR /&gt;V_STORE_TRAN_FACT[STORE_KEY],&lt;BR /&gt;V_STORE_TRAN_FACT[TRANSACTIONID],&lt;BR /&gt;"T1",Sum('V_STORE_TRAN_FACT'[TRANS_QTY]))&lt;BR /&gt;Return&lt;BR /&gt;COUNTX(FILTER(table1,[T1]=1),[TRANSACTIONID])&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 07:04:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-i-optimized-this-dax-without-using-summarize-This-is/m-p/3030470#M103539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-19T07:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can i optimized this dax without using summarize. This is taking too much time to load.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-i-optimized-this-dax-without-using-summarize-This-is/m-p/3030540#M103541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the inner FILTER is the oart of the code that consumes most of the time. It includes the evaluation of two measures at each iteration. I see that this filter is absolutely not required. The table is already filtered by the year and week available in the current filter context.&amp;nbsp;&lt;BR /&gt;I guess by removing it, the results shall remain unchanged.&amp;nbsp;&lt;BR /&gt;Single Tran1 =&lt;BR /&gt;VAR table1 =&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;V_STORE_TRAN_FACT,&lt;BR /&gt;V_STORE_TRAN_FACT[STORE_KEY],&lt;BR /&gt;V_STORE_TRAN_FACT[TRANSACTIONID],&lt;BR /&gt;"T1", SUM ( 'V_STORE_TRAN_FACT'[TRANS_QTY] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS ( FILTER ( table1, [T1] = 1 ) )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 07:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-can-i-optimized-this-dax-without-using-summarize-This-is/m-p/3030540#M103541</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-19T07:40:20Z</dc:date>
    </item>
  </channel>
</rss>

