<?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: Optimize MAXX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212652#M19547</link>
    <description>&lt;P&gt;I cannot share the data set as it is confidential. can it be because I refer TI[stock] as a measure?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 17:04:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-09T17:04:53Z</dc:date>
    <item>
      <title>Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209730#M19451</link>
      <description>&lt;P&gt;How can I find the maximum of previous rows with rescpect to the current row? currently I get a memory error when I run this DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maxbi:= MAXX(&lt;BR /&gt;FILTER( Allexcept('TI'; 'TI'[Assignment group]; 'TI'[Type]); [date] &amp;lt;= MAX([date])); 'TI'[Stock])&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209730#M19451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-08T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209770#M19452</link>
      <description>&lt;P&gt;Put the max(date) in a variable to compute it only once&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;maxbi:= 
var md = MAX([date])
return MAXX(
    FILTER( Allexcept('TI'; 'TI'[Assignment group]; 'TI'[Type])
           ; [date] &amp;lt;= md )
; 'TI'[Stock])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:16:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209770#M19452</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-08T17:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209817#M19454</link>
      <description>&lt;P&gt;I mean by that to calculate dates previous to the selected row date.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 17:47:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1209817#M19454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-08T17:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1210307#M19474</link>
      <description>&lt;P&gt;yes, that filter is still there. But now you only compute the upper limit once, instead of for every row.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 23:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1210307#M19474</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-08T23:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212469#M19541</link>
      <description>&lt;P&gt;Thanks for the input. That did not help. I have over 3 million rows. This formula iterates previous rows to find the maximum value of the measure. Is there another way to formulate?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:58:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212469#M19541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T15:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212544#M19542</link>
      <description>3M is not a big number, can share your file?</description>
      <pubDate>Thu, 09 Jul 2020 16:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212544#M19542</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-07-09T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212652#M19547</link>
      <description>&lt;P&gt;I cannot share the data set as it is confidential. can it be because I refer TI[stock] as a measure?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:04:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1212652#M19547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T17:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize MAXX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1213636#M19577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;maxbi =
VAR md =
    MAX ( 'TI'[Date] )
RETURN
    CALCULATE (
        MAX ( 'TI'[Date] ),
        FILTER (
            ALL ( 'TI' ),
            'TI'[Assignment group]
                = MAX ( 'TI'[Assignment group] )
                &amp;amp;&amp;amp; 'TI'[Date] &amp;lt; md
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 05:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimize-MAXX/m-p/1213636#M19577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-10T05:44:11Z</dc:date>
    </item>
  </channel>
</rss>

