<?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: Inventory Forecast Future in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3727895#M145233</link>
    <description>&lt;P&gt;I apologize it is not working, let me elaborate again on the table&lt;BR /&gt;I need help to make the forecast in and out stock or inventory based on order qty and Usage,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;date 25-Feb is today's date with current stock by today&lt;/LI&gt;&lt;LI&gt;Usage forecast is measured by the rolling average of the last 14 days&lt;/LI&gt;&lt;LI&gt;Ending stock by = Onhand + Order qty - Usage&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I need projection inventory for 26-Feb onward for my PBI&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 14:11:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-27T14:11:53Z</dc:date>
    <item>
      <title>Inventory Forecast Future</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3722091#M144954</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I need help to figure out this calculation forecast inventory. I have an issue with the DAX calculation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this calculation in Excel&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;date 25-Feb is today's date with current stock by today&lt;/LI&gt;&lt;LI&gt;26-Feb onward is the projection that I need to calculate&lt;/LI&gt;&lt;LI&gt;Usage forecast is measured by the rolling average of the last 14 days&lt;/LI&gt;&lt;LI&gt;Ending stock by = Onhand + Order qty - Usage&lt;/LI&gt;&lt;LI&gt;Stock 26-Feb is offset from ending stock 25-Feb, and continues on the next date. In this formula, I cannot measure cause have an error "Circular Dependency"&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 17:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3722091#M144954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-25T17:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory Forecast Future</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3722610#M144980</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;It seems like you're trying to create a forecast that takes into account the rolling average of the last 14 days to project future inventory levels.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The circular dependency error you're encountering typically occurs when a calculation refers back to itself directly or indirectly, creating a loop that Power BI cannot resolve.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The following ways may solve your problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First, ensure you have a measure that accurately calculates the rolling average of the last 14 days.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To calculate the ending stock for each day, you can create a measure that takes the previous day's ending stock and adjusts it based on the orders and the rolling average usage. However, to avoid circular dependency, ensure that each calculation is based on previously calculated or static values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ENDING STOCK = 
    CALCULATE(
        SUM('Table'[ON HAND FORECAST]) + SUM('Table'[ORDER QTY]) - SUM('Table'[USAGE FORECAST]), 
        FILTER(
            ALL('Table'), 
            'Table'[DATE] = MAX('Table'[DATE])
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have problems, it is best to provide the pbix file and be careful to delete sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 03:05:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3722610#M144980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-26T03:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory Forecast Future</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3727895#M145233</link>
      <description>&lt;P&gt;I apologize it is not working, let me elaborate again on the table&lt;BR /&gt;I need help to make the forecast in and out stock or inventory based on order qty and Usage,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;date 25-Feb is today's date with current stock by today&lt;/LI&gt;&lt;LI&gt;Usage forecast is measured by the rolling average of the last 14 days&lt;/LI&gt;&lt;LI&gt;Ending stock by = Onhand + Order qty - Usage&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I need projection inventory for 26-Feb onward for my PBI&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:11:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-Forecast-Future/m-p/3727895#M145233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-27T14:11:53Z</dc:date>
    </item>
  </channel>
</rss>

