<?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: MAXX function running slow - how to make it run faster? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170419#M114254</link>
    <description>&lt;P&gt;Thanks so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;- that worked and sped up the process.&amp;nbsp; Appreciate your help and quick response!&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 23:26:41 GMT</pubDate>
    <dc:creator>dancarr22</dc:creator>
    <dc:date>2023-04-03T23:26:41Z</dc:date>
    <item>
      <title>MAXX function running slow - how to make it run faster?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170311#M114246</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently asked a measure question which was answered (very quickly and helpfully!) by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a related question.&amp;nbsp; The following is running very slowly - seems to be the CALCULATE(MAXX... step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;XIRR_BeginRMV_Date = VAR StartDate = [XIRR_BeginDate]
VAR isBefore = XIRR_Lookup[XIRR_BeginRMV_Date_IsBefore]
RETURN IF(isBefore="BEFORE", CALCULATE(MAXX(XIRR_Lookup,XIRR_Lookup[TransactionDate]),XIRR_Lookup[MappingName]="Reported Market Value", XIRR_Lookup[TransactionDate]&amp;lt;StartDate), BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Thanks again - really appreciate people taking time to look at and assist with these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 21:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170311#M114246</guid>
      <dc:creator>dancarr22</dc:creator>
      <dc:date>2023-04-03T21:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: MAXX function running slow - how to make it run faster?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170366#M114249</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="32943" data-lia-user-login="dancarr22" class="lia-mention lia-mention-user"&gt;dancarr22&lt;/a&gt;&amp;nbsp;Maybe:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;XIRR_BeginRMV_Date = 
  VAR StartDate = [XIRR_BeginDate]
  VAR isBefore = XIRR_Lookup[XIRR_BeginRMV_Date_IsBefore]
  VAR table = FILTER('XIRR_Lookup', [MappingName] = "Reported Market Value", [TransactionDate] &amp;lt; StartDate)
  VAR result = IF(isBefore="BEFORE", MAXX(table, [TransactionDate]), BLANK())
RETURN
  result


or

XIRR_BeginRMV_Date = 
  VAR StartDate = [XIRR_BeginDate]
  VAR isBefore = XIRR_Lookup[XIRR_BeginRMV_Date_IsBefore]
  VAR table = SUMMARIZE(FILTER('XIRR_Lookup', [MappingName] = "Reported Market Value", [TransactionDate] &amp;lt; StartDate), [TransactionDate])
  VAR result = IF(isBefore="BEFORE", MAXX(table, [TransactionDate]), BLANK())
RETURN
  result
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Apr 2023 22:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170366#M114249</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-04-03T22:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: MAXX function running slow - how to make it run faster?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170419#M114254</link>
      <description>&lt;P&gt;Thanks so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;- that worked and sped up the process.&amp;nbsp; Appreciate your help and quick response!&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 23:26:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAXX-function-running-slow-how-to-make-it-run-faster/m-p/3170419#M114254</guid>
      <dc:creator>dancarr22</dc:creator>
      <dc:date>2023-04-03T23:26:41Z</dc:date>
    </item>
  </channel>
</rss>

