<?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: New opening inventory in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3560121#M137194</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;thanks much, that's what I need.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 03:15:23 GMT</pubDate>
    <dc:creator>NewBIe2013</dc:creator>
    <dc:date>2023-11-30T03:15:23Z</dc:date>
    <item>
      <title>New opening inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559609#M137156</link>
      <description>&lt;P&gt;Hi Bi folks, need your expertise here, I'm newbie to Power BI.&lt;/P&gt;&lt;P&gt;Would like to have a power bi dax to be able to achieve below result, it's relatively simple in Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below shows a forecast of demand and projected stock to receipt, having the starting inventory (500) minus the demand (100) + stock receipt (1000 ) = 1400 (this is the next open inventory of next month).&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;I had measures for all but just couldn't get to the new inventory (1400) for next month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 19:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559609#M137156</guid>
      <dc:creator>NewBIe2013</dc:creator>
      <dc:date>2023-11-29T19:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: New opening inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559660#M137157</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/window-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;WINDOW function (DAX) - DAX | Microsoft Learn&lt;/A&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;LI-CODE lang="markup"&gt;Opening inventory: =
VAR _initialinventory = 500
VAR _start =
    CALCULATE ( MIN ( Data[Date] ), ALL ( Data[Date] ) )
RETURN
    SWITCH (
        TRUE (),
        MAX ( Data[Date] ) = _start, _initialinventory,
        SUMX (
            WINDOW (
                1,
                ABS,
                -1,
                REL,
                SUMMARIZE ( ALL ( Data ), Data[Date], Data[Demand], Data[Stock receipt] ),
                ORDERBY ( Data[Date], ASC )
            ),
            Data[Stock receipt] - Data[Demand]
        ) + _initialinventory
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 20:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559660#M137157</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-11-29T20:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: New opening inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559682#M137158</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="653865" data-lia-user-login="NewBIe2013" class="lia-mention lia-mention-user"&gt;NewBIe2013&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How does your source data look like?&amp;nbsp;&lt;SPAN&gt;Sharing sample/dummy data would be helpful with the expected output. Save in Google Drive and share the link here granting permission to open.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 20:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3559682#M137158</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2023-11-29T20:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: New opening inventory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3560121#M137194</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;thanks much, that's what I need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 03:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-opening-inventory/m-p/3560121#M137194</guid>
      <dc:creator>NewBIe2013</dc:creator>
      <dc:date>2023-11-30T03:15:23Z</dc:date>
    </item>
  </channel>
</rss>

