<?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: Subtract the previous row with another column with multiple catagory in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3038068#M104082</link>
    <description>&lt;P&gt;Thank you so much sir...&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 15:01:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-23T15:01:23Z</dc:date>
    <item>
      <title>Subtract the previous row with another column with multiple catagory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3030367#M103532</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; i need the answer needed like if A1 is one of the catagory&amp;nbsp; material have totally 5 stocks and we needed two so atlast of A1 needed it's 3 like ... D2= C2-B2 ,,, D3= D2-B3...&amp;nbsp;&lt;/P&gt;&lt;P&gt;D4 = C4-B4 ,,, D5=D4 -B5&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help me to find this column...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 06:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3030367#M103532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-19T06:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract the previous row with another column with multiple catagory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3032881#M103758</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;You need to add an index column to Power Query first.&lt;/P&gt;
&lt;P&gt;Column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cumulative quantity = 
CALCULATE ( SUM ( 'Table'[quantity] ),
    FILTER ( 'Table' ,
        [material] = EARLIER ( 'Table'[material] )
        &amp;amp;&amp;amp; [Index] &amp;lt;= EARLIER ( 'Table'[Index] )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Result = [stock]-[Cumulative quantity]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 02:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3032881#M103758</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-01-20T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract the previous row with another column with multiple catagory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3033128#M103769</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Create Calculated Column.&lt;BR /&gt;Needed = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&amp;nbsp;Sub&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Quantity]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Material]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Material]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Index]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Subtract Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Index]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[Total Stock]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;i hope this help you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 06:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3033128#M103769</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-01-20T06:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract the previous row with another column with multiple catagory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3038068#M104082</link>
      <description>&lt;P&gt;Thank you so much sir...&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3038068#M104082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-23T15:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract the previous row with another column with multiple catagory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3038070#M104084</link>
      <description>&lt;P&gt;Thank you so much sir... It means a lot..&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subtract-the-previous-row-with-another-column-with-multiple/m-p/3038070#M104084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-23T15:02:45Z</dc:date>
    </item>
  </channel>
</rss>

