<?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: Running Total from Current Month Onwards in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3807308#M148855</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618110" data-lia-user-login="Jiro" class="lia-mention lia-mention-user"&gt;Jiro&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 09:26:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-03T09:26:05Z</dc:date>
    <item>
      <title>Running Total from Current Month Onwards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741760#M145921</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compute running total of outbound quantity with additional conditions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cumulative quantity starting from the first date of current month up to any dates in the future&lt;/LI&gt;&lt;LI&gt;Filter context on date is expected to be from March 1st up to June 30th, 2024.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have tested with 2 measures below and they still haven't met the business requirements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The former here is adding up cumulative quantity way back to December 2022, and this is indeed not what we are after:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Outbound RT = 
VAR MaxDate = MAX ( 'DATE'[Date] )
RETURN
    CALCULATE ( 
        [Outbound],
        'DATE'[Date] &amp;lt;= MaxDate,
        ALL ( 'DATE' )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas, this is starting to add up cumulative quantity from "Today" onwards, meaning that any outbound before current date are not factored in as part of calculation:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Outbound RT 2 = 
VAR MaxDate = MAX ( 'DATE'[Date] )
RETURN
    CALCULATE ( 
        [Outbound],
        'DATE'[Date] &amp;lt;= MaxDate &amp;amp;&amp;amp;
        'DATE'[Date] &amp;gt;= TODAY(),
        ALL ( 'DATE' )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Results:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DAX code that starts computing from the first day of current month (March in this stance) onwards to any future dates. The code should add up cumulative quantity starting from March 1st, 2024.&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;Is there anyone who can guide me through? Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 05:36:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741760#M145921</guid>
      <dc:creator>Jiro</dc:creator>
      <dc:date>2024-03-05T05:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total from Current Month Onwards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741807#M145924</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To achieve the desired outcome of computing the running total of outbound quantity starting from the first day of the current month onwards, you can use the following DAX code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Outbound RT =&lt;BR /&gt;VAR CurrentMonthStartDate = DATE(YEAR(TODAY()), MONTH(TODAY()), 1)&lt;BR /&gt;VAR MaxDate = MAX('DATE'[Date])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[Outbound],&lt;BR /&gt;'DATE'[Date] &amp;gt;= CurrentMonthStartDate,&lt;BR /&gt;'DATE'[Date] &amp;lt;= MaxDate,&lt;BR /&gt;ALL('DATE')&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This DAX code calculates the running total of the outbound quantity, starting from the first day of the current month (March 1st, 2024) up to any future dates within the filter context of March 1st to June 30th, 2024.&lt;/P&gt;&lt;P&gt;Ensure that you have a 'DATE' table with a column named 'Date' that contains all the dates you want to consider in your analysis. Replace [Outbound] with the appropriate measure or column name representing your outbound quantity.&lt;/P&gt;&lt;P&gt;This code should give you the desired cumulative quantity starting from March 1st, 2024, to any future dates within the specified filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 05:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741807#M145924</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-03-05T05:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total from Current Month Onwards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741845#M145925</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618110" data-lia-user-login="Jiro" class="lia-mention lia-mention-user"&gt;Jiro&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;try below code&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Outbound RT 2 = 
VAR MaxDate = MAX ( 'DATE'[Date] )
var month_startdate= EOMONTH(today(),-1)+1
RETURN
    CALCULATE ( 
        [Outbound],
        'DATE'[Date] &amp;lt;= MaxDate &amp;amp;&amp;amp;
        'DATE'[Date] &amp;gt;= month_startdate,
        ALL ( 'DATE' )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i have question&amp;nbsp;&lt;BR /&gt;why you use&amp;nbsp; ALL('DATE') INSIDE CALCULATE ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3741845#M145925</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-03-05T06:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total from Current Month Onwards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3807308#M148855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="618110" data-lia-user-login="Jiro" class="lia-mention lia-mention-user"&gt;Jiro&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-from-Current-Month-Onwards/m-p/3807308#M148855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-03T09:26:05Z</dc:date>
    </item>
  </channel>
</rss>

