<?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 to add conditions to identify the row value in cumulative calculation DAX? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4279620#M169826</link>
    <description>&lt;P&gt;Thanks for the reply from&amp;nbsp;lbendlin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="777113" data-lia-user-login="Chrystal" class="lia-mention lia-mention-user"&gt;Chrystal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new column and try the following DAX formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result = 
VAR Currentmonth='Table'[Month]
VAR CurrentQtyDelta='Table'[Qty Delta]
VAR PreviousResult=CALCULATE(SUM('Table'[Qty Delta]),FILTER('Table','Table'[Month]&amp;lt;Currentmonth&amp;amp;&amp;amp;'Table'[Qty Delta]&amp;lt;0))
RETURN
IF(CurrentQtyDelta&amp;gt;0,CurrentQtyDelta,PreviousResult+CurrentQtyDelta)​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 09:44:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-12T09:44:14Z</dc:date>
    <item>
      <title>How to add conditions to identify the row value in cumulative calculation DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4273637#M169534</link>
      <description>&lt;P&gt;Dear Key Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I add addtional conditions to identify the row results in cumulative calculations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As in the Table below mentioned, I need to cumulative the "Qty Delta" sort by the Month level, thats give me the column "**bleep** Qty Delta" in dax,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want this dax formula to add condition is if the "**bleep** Qty Delta" is positive, then the next cumulative calculation will take this positive as 0 in the next calculation, like how this will performed in column "Correct **bleep** Delta"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;Chrystal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 08:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4273637#M169534</guid>
      <dc:creator>Chrystal</dc:creator>
      <dc:date>2024-11-07T08:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add conditions to identify the row value in cumulative calculation DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4273974#M169556</link>
      <description>&lt;P&gt;Conditional accumulation is impossible in DAX.&amp;nbsp; The only way you can do this is in Power Query via List.Accumulate() .&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 11:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4273974#M169556</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-07T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add conditions to identify the row value in cumulative calculation DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4279620#M169826</link>
      <description>&lt;P&gt;Thanks for the reply from&amp;nbsp;lbendlin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="777113" data-lia-user-login="Chrystal" class="lia-mention lia-mention-user"&gt;Chrystal&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new column and try the following DAX formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result = 
VAR Currentmonth='Table'[Month]
VAR CurrentQtyDelta='Table'[Qty Delta]
VAR PreviousResult=CALCULATE(SUM('Table'[Qty Delta]),FILTER('Table','Table'[Month]&amp;lt;Currentmonth&amp;amp;&amp;amp;'Table'[Qty Delta]&amp;lt;0))
RETURN
IF(CurrentQtyDelta&amp;gt;0,CurrentQtyDelta,PreviousResult+CurrentQtyDelta)​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;, then please consider&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 09:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4279620#M169826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-12T09:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to add conditions to identify the row value in cumulative calculation DAX?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4281287#M169903</link>
      <description>&lt;P&gt;Hi! thanks for your reply, I will check it out!!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 07:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-conditions-to-identify-the-row-value-in-cumulative/m-p/4281287#M169903</guid>
      <dc:creator>Chrystal</dc:creator>
      <dc:date>2024-11-13T07:34:42Z</dc:date>
    </item>
  </channel>
</rss>

