<?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: Add current value to previous row value (with condition) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/878613#M7452</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179989" data-lia-user-login="saraMissBI" class="lia-mention lia-mention-user"&gt;saraMissBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, this works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one additional queston, what should I do if I want to subtract values from column "Number"?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2019 10:54:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-18T10:54:18Z</dc:date>
    <item>
      <title>Add current value to previous row value (with condition)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/877733#M7426</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way that I can do this in Power BI? I want to make column "calculations" using this formula.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Milena&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:02:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/877733#M7426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-17T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add current value to previous row value (with condition)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/877962#M7434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here is a solution to your problem. I am not sure if it is the most efficient solution, but it gives you the result needed.&lt;/P&gt;&lt;P&gt;First, I added an index column from the query editor to the table to be able to catch the previous value of Type and Size. Then, I added a calculated column with the formula below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;Please find the .pbix file &lt;A title="file" href="https://alakhawayn365-my.sharepoint.com/:u:/g/personal/s_ouchtal_alumni_aui_ma/ER-sbYdmxutAhHcC6iKexSsBtH2sVUDIi4eUlZuyXP5KAQ?e=9aIEGz" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;(N.B. I updated the file please make sure you refresh the page to get the correct file!)&lt;/DIV&gt;&lt;DIV&gt;Please if that solves your problem, accept as solution and give kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/877962#M7434</guid>
      <dc:creator>saraMissBI</dc:creator>
      <dc:date>2019-12-17T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add current value to previous row value (with condition)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/878613#M7452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179989" data-lia-user-login="saraMissBI" class="lia-mention lia-mention-user"&gt;saraMissBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, this works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one additional queston, what should I do if I want to subtract values from column "Number"?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 10:54:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-current-value-to-previous-row-value-with-condition/m-p/878613#M7452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-18T10:54:18Z</dc:date>
    </item>
  </channel>
</rss>

