<?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: Cummulative Sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300857#M123116</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442496" data-lia-user-login="Neel98" class="lia-mention lia-mention-user"&gt;Neel98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Add an Index column to your table in Power Query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Use this if you want a total amount

Running Total = 
VAR  _tableIndex = MAX('Table'[Index])
//Var _Area = MAX('Table'[Area])

var _calc = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex))
//Var _calcArea = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex &amp;amp;&amp;amp; 'Table'[Area]=_Area))
return _calc&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Use this if you want a running total that is for each area.

Running Total Area = 
VAR  _tableIndex = MAX('Table'[Index])
Var _Area = MAX('Table'[Area])

var _calc = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex))
Var _calcArea = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex &amp;amp;&amp;amp; 'Table'[Area]=_Area))
return _calcArea&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 20:48:58 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2023-06-24T20:48:58Z</dc:date>
    <item>
      <title>Cummulative Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300787#M123107</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;I want to find out the cumulative sum without a date field and have attached the data for your reference. Could you please share the dax for cummulative sum?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 15:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300787#M123107</guid>
      <dc:creator>Neel98</dc:creator>
      <dc:date>2023-06-24T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300847#M123114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442496" data-lia-user-login="Neel98" class="lia-mention lia-mention-user"&gt;Neel98&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Would you please give us more details? Do you wish the cumulative QTY based on all the rows, or on the material or area?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 20:09:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300847#M123114</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2023-06-24T20:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300857#M123116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442496" data-lia-user-login="Neel98" class="lia-mention lia-mention-user"&gt;Neel98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Add an Index column to your table in Power Query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Use this if you want a total amount

Running Total = 
VAR  _tableIndex = MAX('Table'[Index])
//Var _Area = MAX('Table'[Area])

var _calc = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex))
//Var _calcArea = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex &amp;amp;&amp;amp; 'Table'[Area]=_Area))
return _calc&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Use this if you want a running total that is for each area.

Running Total Area = 
VAR  _tableIndex = MAX('Table'[Index])
Var _Area = MAX('Table'[Area])

var _calc = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex))
Var _calcArea = Calculate(SUM('Table'[Quanity]),FILTER(ALL('Table'), 'Table'[Index]&amp;lt;=_tableIndex &amp;amp;&amp;amp; 'Table'[Area]=_Area))
return _calcArea&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 20:48:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-Sum/m-p/3300857#M123116</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2023-06-24T20:48:58Z</dc:date>
    </item>
  </channel>
</rss>

