<?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 Running Balance and Adding Previous Month Balance in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3499753#M134179</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have calculated my running balance: if balance between available and scheduled is less than 0, than 0 otherwise the difference of available to scheduled - we can't carry over a positve balance. If you don't use it you lose it. My problem is that I then need adjusted scheduled hours to be scheduled hours + -running balance from previous month. You can see in my formula I used&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Scheduled Hours Report'&lt;/SPAN&gt;&lt;SPAN&gt;[Running Balance]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUSMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)) but it's not pulling my running balance from the previous month. Is this because my running balance is from two different tables linked by date? If so, how do I get an adjusted scheduled hours column based on any negative difference between available and scheduled hours.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 18:33:25 GMT</pubDate>
    <dc:creator>amirel01</dc:creator>
    <dc:date>2023-10-26T18:33:25Z</dc:date>
    <item>
      <title>Running Balance and Adding Previous Month Balance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3499753#M134179</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have calculated my running balance: if balance between available and scheduled is less than 0, than 0 otherwise the difference of available to scheduled - we can't carry over a positve balance. If you don't use it you lose it. My problem is that I then need adjusted scheduled hours to be scheduled hours + -running balance from previous month. You can see in my formula I used&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Scheduled Hours Report'&lt;/SPAN&gt;&lt;SPAN&gt;[Running Balance]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;PREVIOUSMONTH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)) but it's not pulling my running balance from the previous month. Is this because my running balance is from two different tables linked by date? If so, how do I get an adjusted scheduled hours column based on any negative difference between available and scheduled hours.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 18:33:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3499753#M134179</guid>
      <dc:creator>amirel01</dc:creator>
      <dc:date>2023-10-26T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running Balance and Adding Previous Month Balance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3500608#M134217</link>
      <description>&lt;P&gt;can you show the code of other three measures?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 06:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3500608#M134217</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-10-27T06:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running Balance and Adding Previous Month Balance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3511985#M134784</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help. Below is the other formula's. Let me know if there is anything else I can provide to get more help on solving this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Running Balance =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Running Total Available Hours]&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;[Running Total Scheduled Hours]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Running Total Available Hours]&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;[Running Total Scheduled Hours]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Running Total Available Hours =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Available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lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3511985#M134784</guid>
      <dc:creator>amirel01</dc:creator>
      <dc:date>2023-11-02T12:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running Balance and Adding Previous Month Balance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3513348#M134845</link>
      <description>&lt;P&gt;it seams PREVIOUSMONTH filters the date range, and ALLSELECTED can not remove that filter&lt;/P&gt;
&lt;P&gt;try to change ALLSELECTED to ALL&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 00:23:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3513348#M134845</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-11-03T00:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running Balance and Adding Previous Month Balance</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3514232#M134895</link>
      <description>&lt;P&gt;That worked. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 10:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Balance-and-Adding-Previous-Month-Balance/m-p/3514232#M134895</guid>
      <dc:creator>amirel01</dc:creator>
      <dc:date>2023-11-03T10:21:54Z</dc:date>
    </item>
  </channel>
</rss>

