<?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 and Stock balance calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5109374#M187218</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;i tried accessing the google sheet, its not opening on my end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Feb 2026 06:41:54 GMT</pubDate>
    <dc:creator>techies</dc:creator>
    <dc:date>2026-02-21T06:41:54Z</dc:date>
    <item>
      <title>Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5107739#M187208</link>
      <description>&lt;P&gt;I have three tables Invenotry,Supply and Demand by SKUs&lt;BR /&gt;&lt;A title="Inventory Data" href="https://docs.google.com/spreadsheets/d/1a4tus4q_D2BjoVrkTvgMSytNinJUG0CB/edit?usp=drive_link&amp;amp;ouid=100940992842064054172&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1a4tus4q_D2BjoVrkTvgMSytNinJUG0CB/edit?usp=drive_link&amp;amp;ouid=100940992842064054172&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;1.Inventory table is for &amp;nbsp;Current month i.e. Feb/2026&lt;/P&gt;&lt;DIV&gt;2.Demand Table by SKU and month&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;3. Supply Table by SKU and Month&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to calculate stock balance for Each month&lt;BR /&gt;&lt;BR /&gt;Stock balance Feb/2026 = Inventory Feb/2026 + Supply Feb/2026 - Feb/2026 Demand&lt;BR /&gt;&lt;BR /&gt;And Stock balance of Previous month should be Inventory for Next month&lt;BR /&gt;&lt;BR /&gt;i.e Stock Balance Mar/2026 = Stock balance Feb/2026&amp;nbsp; + Supply Mar/2026 - Mar/2026 Demand&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;For Stock balance I am using below Dax&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Stock Balance &lt;/SPAN&gt;&lt;SPAN&gt;by&lt;/SPAN&gt;&lt;SPAN&gt; SKU (EA) = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; CurrentMonthKey =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Month Table'[Month Key] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; StartMonthKey =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Month Table'[Month Key] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Month Table' )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Masterial Master SKUs'[Material] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; OpeningAtStart_forSKU =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Inventory On Hand(EA)'[IOH Qty (EA)] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Month Table'[Month Key] = StartMonthKey&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; NetFlow_Start_to_Current_forSKU =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( Supply[Supply Qty (EA)] ) - &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt; ( Demand[Demand Qty (EA)] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;-- intersect (do not overwrite) existing filters&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;KEEPFILTERS&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Month Table'[Month Key] &amp;gt;= StartMonthKey&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; 'Month Table'[Month Key] &amp;lt;= CurrentMonthKey&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( OpeningAtStart_forSKU, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ( NetFlow_Start_to_Current_forSKU, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;But it is calulating Stock balance for Mar/2026 consdering Feb/2026 Inventory rather tahn Feb2026 stock balance&lt;BR /&gt;Could you please provide me correct DAX?&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Feb 2026 11:12:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5107739#M187208</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-02-20T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5108864#M187211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The current calculation approach anchors the logic to the first month’s inventory, which prevents the balance from accumulating month by month. Instead, you need a running calculation that begins with the opening inventory of the first visible month (such as February 2026) and then adds supply and subtracts demand for each subsequent month. For example, February’s balance should be calculated as Inventory plus Supply minus Demand for that month. March’s calculation should use February’s ending balance, add March supply, and subtract March demand. In DAX, this can be achieved by fixing the opening inventory at the first visible month and calculating a cumulative total of (Supply minus Demand) from that month up to the current month. By adding the opening inventory to this cumulative net movement, the measure will correctly carry forward the balance for each month without manually referencing the previous month’s result.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 12:26:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5108864#M187211</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-02-20T12:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5108894#M187213</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1275242" data-lia-user-login="v-sshirivolu" class="lia-mention lia-mention-user"&gt;v-sshirivolu&lt;/a&gt;,&lt;BR /&gt;Thank you for the input.It will be really helpfull if can suggest correct DAX&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 12:59:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5108894#M187213</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-02-20T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5109374#M187218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;i tried accessing the google sheet, its not opening on my end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Feb 2026 06:41:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5109374#M187218</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-02-21T06:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5109891#M187238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp;.Could you please check it now.. You will be able to access it now.&amp;nbsp;&lt;BR /&gt;else you can use below link&lt;BR /&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1a4tus4q_D2BjoVrkTvgMSytNinJUG0CB/edit?usp=sharing&amp;amp;ouid=100940992842064054172&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1a4tus4q_D2BjoVrkTvgMSytNinJUG0CB/edit?usp=sharing&amp;amp;ouid=100940992842064054172&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 09:21:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5109891#M187238</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-02-22T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5110021#M187242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;to provide the correct DAX we need more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX has different results based on the context, so we need to know the context in which your calculation is performed. Please provide a clear set of images showing which columns are grouped in the visual where you are using the measure, and any slicer interacting, a picture fo the data model and a short description on each image, so we can get the necessary insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 15:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5110021#M187242</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2026-02-22T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5114945#M187245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for following up.&lt;BR /&gt;I’ve attached the PBIX file, which contains the full working setup, including the sample data model, relationships, base measures, and the final running stock balance calculation.&lt;/P&gt;
&lt;P&gt;This approach anchors the calculation to the opening inventory of the first visible month and then accumulates the net movement (Supply minus Demand) up to the current month. By adding this cumulative movement to the opening inventory, the balance rolls forward correctly each month without referencing the previous month’s result directly.&lt;/P&gt;
&lt;P&gt;Please find the attached .pbix file below.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 07:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5114945#M187245</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-02-23T07:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5115670#M187251</link>
      <description>&lt;P&gt;Yes, i can access now, thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will review and get back shortly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 18:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5115670#M187251</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-02-23T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5115901#M187253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;please try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Stock Balance &lt;/SPAN&gt;&lt;SPAN&gt;by&lt;/SPAN&gt;&lt;SPAN&gt; SKU =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CurrentMonth&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Index]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FirstMonth&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Index]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nb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lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Index]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Index]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;FirstMonth&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Date Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Index]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;CurrentMonth&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;OpeningInventory&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;MovementToDate&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Feb 2026 03:49:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5115901#M187253</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-02-24T03:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5118965#M187256</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN data-teams="true"&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&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 05:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5118965#M187256</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-02-25T05:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5124188#M187285</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 06:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5124188#M187285</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-03-02T06:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5131734#M187386</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for you response.&amp;nbsp;&lt;BR /&gt;I am still facing the same issue Stock balance is still not carrying forward to next month as opening inventory.&lt;BR /&gt;Could you please share the file so that I can check how you applied this logic?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 14:10:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5131734#M187386</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-03-13T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5131775#M187387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;please review and let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 14:45:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5131775#M187387</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-03-13T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5134657#M187425</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for the file&lt;BR /&gt;Currently DAX is calculating correct stock balance only for first month.&amp;nbsp;but for Mar 2026 Stock balance should be&amp;nbsp;&lt;BR /&gt;Stock balance from Feb 2026 + Supply Mar 2026 - Demand Mar 2026&lt;BR /&gt;4,925,741+598,916-527,775 = 4,996,882 currently it is just showing Net movement as stock balance for Mar 2026. It is not considering as last months stock balance and carry it forward to next month&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 13:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5134657#M187425</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-03-18T13:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5135627#M187427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1275242" data-lia-user-login="v-sshirivolu" class="lia-mention lia-mention-user"&gt;v-sshirivolu&lt;/a&gt;,&lt;BR /&gt;This is working for Me. Sorry I forget to reply on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Really Appreciate your help.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5135627#M187427</guid>
      <dc:creator>DineshJadhav</dc:creator>
      <dc:date>2026-03-19T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory and Stock balance calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5136233#M187441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1548957" data-lia-user-login="DineshJadhav" class="lia-mention lia-mention-user"&gt;DineshJadhav&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Glad to hear it’s working for you.&amp;nbsp;&lt;/SPAN&gt;Thanks for the update.&lt;BR /&gt;Feel free to reach out if you need any further help.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;v-sshirivolu&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 08:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inventory-and-Stock-balance-calculation/m-p/5136233#M187441</guid>
      <dc:creator>v-sshirivolu</dc:creator>
      <dc:date>2026-03-20T08:49:56Z</dc:date>
    </item>
  </channel>
</rss>

