<?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: Getting not enough memory error on powerbi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3314654#M123992</link>
    <description>&lt;P&gt;You could try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Impact =
VAR Successes =
    FILTER (
        ALLEXCEPT (
            Payment,
            Payment[[Cust_Id],
            Payment[Month],
            Payment[TransactionStatus]
        ),
        Payment[TransactionStatus] = "true"
    )
RETURN
    IF ( ISEMPTY ( Successes ), "Yes", "No" )
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 04 Jul 2023 14:22:39 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-07-04T14:22:39Z</dc:date>
    <item>
      <title>Getting not enough memory error on powerbi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3314523#M123978</link>
      <description>&lt;P&gt;When i run the below dax formula i'm getting the not enough memory error. How do I fix it please&lt;/P&gt;&lt;P&gt;Impact =&lt;BR /&gt;VAR Success = SELECTCOLUMNS(Filter(Payment,Payment[TransactionStatus]="true"),"Cust_id_Month",CONCATENATE([Cust_Id],Payment[Month]))&lt;BR /&gt;Return IF(CONCATENATE(Payment[Cust_Id],Payment[Month]) in Success,"No","Yes")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to see if the payment failure had impact on churn. I.e. did the customer have a successful payment that month.&lt;/P&gt;&lt;P&gt;I'm filtering on successful transaction, storing it as a table "Success" and then checking if the cust_Id, Month combination for each payment is found in Success. If found then it's found then "No" the payment failure had no impact on churn for that month, if not found then "yes" the payment failure had impact on churn.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3314523#M123978</guid>
      <dc:creator>SGV</dc:creator>
      <dc:date>2023-07-04T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting not enough memory error on powerbi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3314654#M123992</link>
      <description>&lt;P&gt;You could try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Impact =
VAR Successes =
    FILTER (
        ALLEXCEPT (
            Payment,
            Payment[[Cust_Id],
            Payment[Month],
            Payment[TransactionStatus]
        ),
        Payment[TransactionStatus] = "true"
    )
RETURN
    IF ( ISEMPTY ( Successes ), "Yes", "No" )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jul 2023 14:22:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3314654#M123992</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-07-04T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting not enough memory error on powerbi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3315579#M124049</link>
      <description>&lt;P&gt;After testing it,i've realized that the formula is putting only failed payments where impact is yes. Remember I wanted customers who had a failed payment and a successful payment in the same month.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 07:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3315579#M124049</guid>
      <dc:creator>SGV</dc:creator>
      <dc:date>2023-07-05T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting not enough memory error on powerbi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3333587#M124973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584327" data-lia-user-login="SGV" class="lia-mention lia-mention-user"&gt;SGV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an optimized version of your DAX formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Impact =
VAR Success =
    CALCULATETABLE (
        VALUES ( Payment[Cust_Id] ),
        Payment[TransactionStatus] = "true",
        ALLEXCEPT ( Payment, Payment[Month] )
    )
RETURN
    IF (
        CONTAINS ( Success, Payment[Cust_Id], Payment[Cust_Id] ),
        "No",
        "Yes"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Impact Measure :=
VAR Success =
    CALCULATETABLE (
        VALUES ( Payment[Cust_Id] ),
        Payment[TransactionStatus] = "true",
        ALLEXCEPT ( Payment, Payment[Month] )
    )
VAR CurrentCustIdMonth =
    CONCATENATE ( SELECTEDVALUE ( Payment[Cust_Id] ), SELECTEDVALUE ( Payment[Month] ) )
RETURN
    IF (
        CONTAINS ( Success, Payment[Cust_Id], SELECTEDVALUE ( Payment[Cust_Id] ) ),
        "No",
        "Yes"
    )&lt;/LI-CODE&gt;
&lt;P&gt;This formula uses and to create a table of unique values with successful transactions for each month. Then, it uses the function to check if the is in the table. If it is, the formula returns "No", otherwise, it returns "Yes".&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still encounter memory issues, consider reducing the amount of data being processed or optimizing your data model. You can also use tools like DAX Studio to analyze and optimize your DAX queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 05:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3333587#M124973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-17T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting not enough memory error on powerbi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3340635#M125376</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 11:09:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-not-enough-memory-error-on-powerbi/m-p/3340635#M125376</guid>
      <dc:creator>SGV</dc:creator>
      <dc:date>2023-07-20T11:09:53Z</dc:date>
    </item>
  </channel>
</rss>

