<?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: Forecasted Inventory while staying above zero if negative in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4650497#M178014</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238776" data-lia-user-login="mmossy" class="lia-mention lia-mention-user"&gt;mmossy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solution? If so, please mark it as the solution. This will help other community members solve similar problems faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Apr 2025 04:25:45 GMT</pubDate>
    <dc:creator>v-ssriganesh</dc:creator>
    <dc:date>2025-04-14T04:25:45Z</dc:date>
    <item>
      <title>Forecasted Inventory while staying above zero if negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4609584#M176458</link>
      <description>&lt;P&gt;I currently have an issue with trying to forecast my stock on hand by SKU by month.&amp;nbsp; I have my current SOH by SKU as well as forecasted sales &amp;amp; purchases which i have summarised into a net movements by month per SKU.&amp;nbsp; The below tables are basic examples of my data and the 3rd table is a summary of how i want the calculations to work.&amp;nbsp; Basically i need a running total of forecasted SOH where the SKU SOH for any given month returns 0 if the forecasted SOH is less than 0, but i would like the negative amount to carry over as open sales orders.&amp;nbsp; So with SKU A, it returns 0 at 31/03/2025 because it is forecasted to be less than 0, but at 30/04/2025 it returns 7 because Opening Stock + Forecast Movements + Net units carried over = 0 + 10 - 3 = 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;TD&gt;Stock on Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28/02/2025&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28/02/2025&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;MonthYr&lt;/TD&gt;&lt;TD&gt;SKU&lt;/TD&gt;&lt;TD&gt;Net Forecast Movements&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/03/2025&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;-5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30/04/2025&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/03/2025&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt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Date>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4609584#M176458</guid>
      <dc:creator>mmossy</dc:creator>
      <dc:date>2025-03-14T04:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasted Inventory while staying above zero if negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4616079#M176649</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Forecasted SOH =
VAR CurrentDate =
    MAX ( 'Date'[Date] )
VAR Result =
    SUMX (
        'Product',
        VAR ForecastValue =
            CALCULATE (
                SUM ( Forecast[Net forecast movements] ),
                'Date'[Date] &amp;lt;= CurrentDate
            )
        VAR Total = 'Product'[Stock on hand] + ForecastValue
        VAR Result =
            MAX ( Total, 0 )
        RETURN
            Result
    )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Mar 2025 10:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4616079#M176649</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-03-19T10:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasted Inventory while staying above zero if negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4650497#M178014</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238776" data-lia-user-login="mmossy" class="lia-mention lia-mention-user"&gt;mmossy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solution? If so, please mark it as the solution. This will help other community members solve similar problems faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 04:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4650497#M178014</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-14T04:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasted Inventory while staying above zero if negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4663667#M178597</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238776" data-lia-user-login="mmossy" class="lia-mention lia-mention-user"&gt;mmossy&lt;/a&gt;,&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 17:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4663667#M178597</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-22T17:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasted Inventory while staying above zero if negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4667914#M178800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1238776" data-lia-user-login="mmossy" class="lia-mention lia-mention-user"&gt;mmossy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 07:11:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Forecasted-Inventory-while-staying-above-zero-if-negative/m-p/4667914#M178800</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-04-25T07:11:02Z</dc:date>
    </item>
  </channel>
</rss>

