<?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: Keep calculation from last months in the next ones in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keep-calculation-from-last-months-in-the-next-ones/m-p/3061946#M105836</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question completely. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2023 00:24:22 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-02-05T00:24:22Z</dc:date>
    <item>
      <title>Keep calculation from last months in the next ones</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keep-calculation-from-last-months-in-the-next-ones/m-p/3057380#M105518</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Every month I have 3 columns: Stock, Forecast and a calculation RiskBBD.&lt;/P&gt;&lt;P&gt;I need to calculate RiskBBD in such a way that it will keep the result from previous months in the next months.&lt;/P&gt;&lt;P&gt;RiskBBD = Stock-Forecast, but if last month RiskBBD was negative, it will be Stock-Forecast+LastMonth RiskBBD. If In one month I won't have stock and Forecast, it will show me the result (RiskBBD) from the last month.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, if last month BBDRisk &amp;lt;&amp;gt; 0&amp;nbsp; AND &amp;lt;0, THEN Stock-Forecast+RiskBBD Last month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if last month BBDRisk &amp;lt;&amp;gt; AND &amp;gt;0, Then Stock-Forecast&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if last month&amp;lt;&amp;gt;BBDRisk 0 AND this month =0, THEN Last month RiskBBD&amp;nbsp; (The same in the next months with the last RiskBBD)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if last month BBDRisk =0, THEN Stock-Forecast&lt;/P&gt;&lt;P&gt;Here is the Calculation in Excel:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 07:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keep-calculation-from-last-months-in-the-next-ones/m-p/3057380#M105518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-03T07:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Keep calculation from last months in the next ones</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keep-calculation-from-last-months-in-the-next-ones/m-p/3061946#M105836</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question completely. &lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 00:24:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Keep-calculation-from-last-months-in-the-next-ones/m-p/3061946#M105836</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-02-05T00:24:22Z</dc:date>
    </item>
  </channel>
</rss>

