<?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: Cumulative Sum for individual material in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3308022#M123567</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;just create measure like Total quantity = SUM(&amp;lt;YOUR TABLE NAME&amp;gt;[Qty]) and put it on table / matrix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Accept it as the solution&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 10:15:00 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2023-06-29T10:15:00Z</dc:date>
    <item>
      <title>Cumulative Sum for individual material</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3306185#M123483</link>
      <description>&lt;P&gt;I want to find out the Cumulative sum for individual materials. I have highlighted the desired result in yellow. Is this possible in DAX?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 12:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3306185#M123483</guid>
      <dc:creator>Neel98</dc:creator>
      <dc:date>2023-06-28T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum for individual material</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3308022#M123567</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;just create measure like Total quantity = SUM(&amp;lt;YOUR TABLE NAME&amp;gt;[Qty]) and put it on table / matrix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Accept it as the solution&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 10:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3308022#M123567</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-29T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Sum for individual material</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3309652#M123669</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can achieve this in Power BI. You need to add an [Index] or [Date] column to determine the order of the data.&lt;/P&gt;
&lt;P&gt;Here I suggest you to add an Index by material group in Power Query Editor.&lt;/P&gt;
&lt;P&gt;Sort your table as you want&amp;gt; Group all rows by Material column &amp;gt; Add index column by M query.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table.AddIndexColumn([Count],"Index",1)&lt;/LI-CODE&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query" target="_self"&gt;Create Row Number for Each Group in Power BI using Power Query&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cummulative Sum =
CALCULATE (
    SUM ( 'Table'[Qty] ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[Material] ),
        'Table'[Index] &amp;lt;= EARLIER ( 'Table'[Index] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&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;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 07:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Sum-for-individual-material/m-p/3309652#M123669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-30T07:46:06Z</dc:date>
    </item>
  </channel>
</rss>

