<?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 Current day Ending balance should show up as Starting balance for next day in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901042#M94484</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help to figure out this interesting qusetion.&lt;/P&gt;&lt;P&gt;How to write a DAX expression/measure to show currrent day ending balance as a Starting balance for next day and continue addin up as shown in the example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 22:22:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-11T22:22:47Z</dc:date>
    <item>
      <title>Current day Ending balance should show up as Starting balance for next day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901042#M94484</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help to figure out this interesting qusetion.&lt;/P&gt;&lt;P&gt;How to write a DAX expression/measure to show currrent day ending balance as a Starting balance for next day and continue addin up as shown in the example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 22:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901042#M94484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-11T22:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Current day Ending balance should show up as Starting balance for next day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901107#M94486</link>
      <description>&lt;P&gt;You can't really do true recursion in DAX, but fortunately in your case it looks like you could do a running total of Sales and subtract the running total of costs (both up until the previous day).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 00:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901107#M94486</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2022-11-12T00:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Current day Ending balance should show up as Starting balance for next day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901155#M94491</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Agree with &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443516" data-lia-user-login="ppm1" class="lia-mention lia-mention-user"&gt;ppm1&lt;/a&gt; , You need something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Starting Balanace = calculate(Sum(Table[Sale])- Sum(Table[Cost]), filter(all(Date), Date[Date] &amp;lt; Max(Date[Date]) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI Inventory On Hand&lt;BR /&gt;Power BI Inventory On Hand: &lt;A href="https://youtu.be/nKbJ9Cpb-Aw" target="_blank" rel="noopener"&gt;https://youtu.be/nKbJ9Cpb-Aw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 02:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2901155#M94491</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-12T02:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current day Ending balance should show up as Starting balance for next day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2911478#M95148</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;&amp;nbsp;&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Please follow these steps:&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;(1) Create a new measure&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Balance = 
SUMX (
    FILTER ( ALL ( 'Table' ), 'Table'[Data] &amp;lt;= MAX ( 'Table'[Data] ) ),
    'Table'[Sales] - 'Table'[Cost]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;(2)Final output&lt;BR /&gt;&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;img /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Gallen Luo&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 05:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/2911478#M95148</guid>
      <dc:creator>v-jialluo-msft</dc:creator>
      <dc:date>2022-11-17T05:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current day Ending balance should show up as Starting balance for next day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/4764893#M182527</link>
      <description>&lt;P&gt;Have you solved this? I'm looking for the same DAX to be used&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 08:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-day-Ending-balance-should-show-up-as-Starting-balance/m-p/4764893#M182527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-07-16T08:22:05Z</dc:date>
    </item>
  </channel>
</rss>

