<?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 Make DAX formula more efficient in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789753#M87547</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a DAX formula that works in logic. However, when I run it, the error message appears:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"There is not enough memory available to perform this operation. Try again later when more memory may be available."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is with the DAX formula and I would like to make it more efficient. Would it be enough to add a date filtering or does anyone see a concrete improvement possibility to make the DAX formula run faster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;OrdersZSOPA1 = IF( ISBLANK( CALCULATE(max('Sales Invoice Line'[Artikel]),(ALLEXCEPT('Sales Invoice Header','Sales Invoice Header'[Auftrag MCS])),'Sales Invoice Line'[Artikel]="ZSOPA")),1,0)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you very much for your help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 12:01:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-23T12:01:22Z</dc:date>
    <item>
      <title>Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789753#M87547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a DAX formula that works in logic. However, when I run it, the error message appears:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"There is not enough memory available to perform this operation. Try again later when more memory may be available."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is with the DAX formula and I would like to make it more efficient. Would it be enough to add a date filtering or does anyone see a concrete improvement possibility to make the DAX formula run faster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;OrdersZSOPA1 = IF( ISBLANK( CALCULATE(max('Sales Invoice Line'[Artikel]),(ALLEXCEPT('Sales Invoice Header','Sales Invoice Header'[Auftrag MCS])),'Sales Invoice Line'[Artikel]="ZSOPA")),1,0)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you very much for your help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 12:01:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789753#M87547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T12:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789835#M87556</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;How many rows of data are you dealing with here?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 12:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789835#M87556</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-23T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789887#M87562</link>
      <description>&lt;P&gt;&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; about 700k&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2789887#M87562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796432#M87872</link>
      <description>&lt;P&gt;&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; Do you have an idea to simplify the DAX formula?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 13:05:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796432#M87872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T13:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796511#M87880</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Couple things to try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;OrdersZSOPA1 =
  VAR __MCS = DISTINCT('Sales Invoice Header'[Auftrag MCS])
  VAR __Table = FILTER('Sales Invoice Line',[Artike] = "ZSOPA" &amp;amp;&amp;amp; [Auftrag MCS] IN __MCS)
  VAR __Count = COUNTROWS(__Table) + 0
RETURN
  IF(__Count = 0, 1, 0) // assumes headers table is connecte via a column called Auftrag MCS

or try something like:

OrdersZSOPA1 =
  VAR __Table = 
    CALCULATETABLE(
      'Sales Invoice Line',
      ALLEXCEPT('Sales Invoice Header','Sales Invoice Header'[Auftrag MCS]),
      'Sales Invoice Line'[Artikel]="ZSOPA"
    )
  VAR __Count = COUNTROWS(__Table) + 0
RETURN
  IF(__Count = 0, 1, 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Sep 2022 13:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796511#M87880</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-26T13:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make DAX formula more efficient</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796923#M87904</link>
      <description>&lt;P&gt;&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;Thank you, it works fine now! Awsome support Greg!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 15:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Make-DAX-formula-more-efficient/m-p/2796923#M87904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T15:05:34Z</dc:date>
    </item>
  </channel>
</rss>

