<?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 based on end of value in another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3836914#M150009</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="693290" data-lia-user-login="vai" class="lia-mention lia-mention-user"&gt;vai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thank you very much for your prompt reply and here allow me to share my own method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Table"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Running Total Past Dates = 
var _today = TODAY()
var _TotalPast = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;lt; _today
        )
    )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Date]) &amp;lt; _today, 
        _TotalPast, 
        BLANK()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Runnint Total Future dates = 
var _today = TODAY()
var _TotalPast = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;lt; _today
        )
    )
var _TotalFuture = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;gt;= _today
        )
    )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Date]) &amp;gt;= _today, 
        _TotalPast + _TotalFuture, 
        BLANK()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 05:34:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-15T05:34:42Z</dc:date>
    <item>
      <title>Running Total based on end of value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3831692#M149816</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two running total measures:&lt;/P&gt;&lt;P&gt;1. RunningTotal Past Dates = if the date is less than today, then create a running total of values in actualized savings column based on approved dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Runnint Total Future dates: if the date is greater than or equal to today, then create a running total of values in future savings columns based on target dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created running total formulas for both and they work, but the issue is I want the running total of "2." to start with the end of running total past dates aka "1." For example, if we refer to the picture below, I want the running total of the second to be 13.74 + 0.35, instead of starting with 0. Is there any suggestions on achieving this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 18:48:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3831692#M149816</guid>
      <dc:creator>vai</dc:creator>
      <dc:date>2024-04-11T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total based on end of value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3831705#M149820</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="693290" data-lia-user-login="vai" class="lia-mention lia-mention-user"&gt;vai&lt;/a&gt;&amp;nbsp;This looks like a measure aggregation problem. See my blog article about that here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The pattern is: &lt;BR /&gt;MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;etc.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 18:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3831705#M149820</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-04-11T18:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total based on end of value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3836914#M150009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="693290" data-lia-user-login="vai" class="lia-mention lia-mention-user"&gt;vai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thank you very much for your prompt reply and here allow me to share my own method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Table"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Running Total Past Dates = 
var _today = TODAY()
var _TotalPast = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;lt; _today
        )
    )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Date]) &amp;lt; _today, 
        _TotalPast, 
        BLANK()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Runnint Total Future dates = 
var _today = TODAY()
var _TotalPast = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;lt; _today
        )
    )
var _TotalFuture = 
    CALCULATE(
        SUM('Table'[Values]), 
        FILTER(
            ALL('Table'), 
            'Table'[Date] &amp;gt;= _today
        )
    )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Date]) &amp;gt;= _today, 
        _TotalPast + _TotalFuture, 
        BLANK()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 05:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-Total-based-on-end-of-value-in-another-column/m-p/3836914#M150009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-15T05:34:42Z</dc:date>
    </item>
  </channel>
</rss>

