<?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: Cumulative Total of Cumulative Totals in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367480#M166364</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try these calculated column formulas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Balance =&amp;nbsp;[Revenue]-[Cost]&lt;/P&gt;&lt;P&gt;RunningBalance =&amp;nbsp;CALCULATE(SUM(Data[Balance]),FILTER(Data,Data[Date]&amp;lt;=EARLIER(Data[Date])))&lt;/P&gt;&lt;P&gt;RunningArea =&amp;nbsp;CALCULATE(SUM(Data[RunningBalance]),FILTER(Data,Data[Date]&amp;lt;=EARLIER(Data[Date])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 04:02:26 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2018-03-01T04:02:26Z</dc:date>
    <item>
      <title>Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367446#M166337</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet another question regarding cumulative totals...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am monitoring my project's cash flow, and I want to assign a metric that would help me assess the&amp;nbsp;cash position. I'm thinking of computing the area under the cash flow curve. In other words I take each day's balance and sum it to current running total. So basically it's a cumulative of cumulative totals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my RunningBalance, which is defined as the following:&lt;/P&gt;&lt;PRE&gt;RunningBalance = CALCULATE( [Balance], FILTER(ALL('Date'), 'Date'[Date] &amp;lt;= MAX('Date'[Date])) )&lt;/PRE&gt;&lt;P&gt;So I thought I could simply have another measure called RunningArea where I would just replace the [Balance] by the above [RunningBalance].&amp;nbsp;Here is the measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = CALCULATE( [RunningBalance], FILTER(ALL('Date'), 'Date'[Date] &amp;lt;= MAX('Date'[Date])) )&lt;/PRE&gt;&lt;P&gt;Unfortunately, I'm not getting the expected result. Both [RunningBalance] and [RunningArea] seem to be giving the same thing. Here is a screen grab of what I'm getting:&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;For the above situation, here is an Excel mockup of the desired output:&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;Any idea how I can get the cumulative of cumulatives?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 02:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367446#M166337</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-01T02:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367462#M166350</link>
      <description>&lt;P&gt;That sounds like a groups and supergroups problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, an aggegation of an aggregation.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 02:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367462#M166350</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-01T02:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367480#M166364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try these calculated column formulas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Balance =&amp;nbsp;[Revenue]-[Cost]&lt;/P&gt;&lt;P&gt;RunningBalance =&amp;nbsp;CALCULATE(SUM(Data[Balance]),FILTER(Data,Data[Date]&amp;lt;=EARLIER(Data[Date])))&lt;/P&gt;&lt;P&gt;RunningArea =&amp;nbsp;CALCULATE(SUM(Data[RunningBalance]),FILTER(Data,Data[Date]&amp;lt;=EARLIER(Data[Date])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 04:02:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367480#M166364</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2018-03-01T04:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367862#M166554</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;Thank you for your quick reply! Your solution gives me the expected results. The only issue is this works for calculated columns, which I had to insert in my Date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my Power BI dashboard allows for dynamic filtering, I&amp;nbsp;would need for [RunningBalance] and [RunningArea] to be measures.&amp;nbsp; Do you know if this can be achieved with measures as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367862#M166554</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-01T13:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367863#M166555</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="56534" data-lia-user-login="florestal" class="lia-mention lia-mention-user"&gt;florestal&lt;/a&gt;- Yes it can, see the article.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367863#M166555</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-01T13:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367868#M166557</link>
      <description>&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;Thanks for your reply. I did read your blog post, but since I'm fairly new to Power BI, I'm not quite sure I understand all the subtleties. The key seems to be the SUMMARIZE function. I'll take my time to read it thoroughly, and let you know if it works for me. Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367868#M166557</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-01T13:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367874#M166560</link>
      <description>&lt;P&gt;Yes, the key is the SUMMARIZE function, which generates the table of the aggregated values. You can then use that table to aggregate those values. A lot of times, I create a temporary "New Table" and get my SUMMARIZE function the way I want (sometimes it's way more than just a SUMMARIZE), create a measure based on that table and then I can easily translate the entire thing into just a single measure.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:35:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/367874#M166560</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-01T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368215#M166721</link>
      <description>&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;You've pointed me in the right direction. Thanks for that. I'm now very close, but still no cigar :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the SUMMARIZE function was not giving me the expected values in the output table. I spent hours trying to figure out why, and finally came across this &lt;A href="https://www.sqlbi.com/articles/introducing-summarizecolumns/" target="_self"&gt;blog post&lt;/A&gt;&amp;nbsp;where the author says&amp;nbsp;that SUMMARIZE&amp;nbsp;has some bugs, and that SUMMARIZECOLUMNS should be used instead. Once I did, I had the right values for my intermediate table. Here's the statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TempTable = 
SUMMARIZECOLUMNS (
    'Date'[Date],
    "RunningBalance",
    CALCULATE ( 
        [Balance], 
        FILTER ( 
            ALLSELECTED ( 'Date' ), 
            'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
        )
    )
)&lt;/PRE&gt;&lt;P&gt;And here is the output:&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;Now since I want the cumulative sum of that table, I figure I have to nest it inside another CALCULATE statement. So here's what I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = 
CALCULATE (
    SUM ( [RunningBalance] ),
    FILTER (
        SUMMARIZECOLUMNS (
            'Date'[Date],
            "RunningBalance",
            CALCULATE ( 
                [Balance], 
                FILTER ( 
                    ALLSELECTED ( 'Date' ), 
                    'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
                )
            )
        ),
        [Date] &amp;lt;= MAX ( [Date] )
    ) 
)&lt;/PRE&gt;&lt;P&gt;The problem is that PowerBI does not recognize the [RunningBalance] column, which is contained in the table returned by the SUMMARIZECOLUMNS function. Here's the error message I get:&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;So my question is this: how can I access the [RunningBalance] column from the dynamic table created? Am I going at this wrong? Your insight is very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 22:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368215#M166721</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-01T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368339#M166804</link>
      <description>&lt;P&gt;Very nice progress!! Try using SUMX instead of SUM. Feed your table created by SUMMARIZECOLUMNS into SUMX and SUMX will recognize your columns.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 03:12:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368339#M166804</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-02T03:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368659#M166953</link>
      <description>&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;Okay I tried SUMX. Since both SUMX and FILTER need a table as their first argument, which in my case is the same, I figured it would be a good time to use a variable in order to prevent the statement from becoming unwieldy. So this is what I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VAR
TempTable =
SUMMARIZECOLUMNS (
    'Date'[Date],
    "RunningBalance",
    CALCULATE ( 
        [Balance], 
        FILTER ( 
            ALLSELECTED ( 'Date' ), 
            'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
        )
    )
)
RETURN

CALCULATE (
    SUMX ( 
        TempTable,
        [RunningBalance] 
    ),
    FILTER (
        TempTable,
        TempTable[Date] &amp;lt;= MAX ( TempTable[Date] )
    ) 
)&lt;/PRE&gt;&lt;P&gt;Power BI is unhappy, as apparently tables cannot be used as variables:&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;So I bit the bullet and copied the entire SUMMARIZECOLUMNS statement twice, well aware that this would be both inefficient and unreadable, but again no success. Now Power BI complains that I need an additional aggregate function in my FILTER expression. First, here is what I wrote:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = 
CALCULATE (
    SUMX ( 
        SUMMARIZECOLUMNS (
            'Date'[Date],
            "RunningBalance",
            CALCULATE ( 
                [Balance], 
                FILTER ( 
                    ALLSELECTED ( 'Date' ), 
                    'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
                )
            )
        ),
        [RunningBalance] 
    ),
    FILTER (
        SUMMARIZECOLUMNS (
            'Date'[Date],
            "RunningBalance",
            CALCULATE ( 
                [Balance], 
                FILTER ( 
                    ALLSELECTED ( 'Date' ), 
                    'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
                )
            )
        ),
        TempTable[Date] &amp;lt;= MAX ( TempTable[Date] )
    ) 
)&lt;/PRE&gt;&lt;P&gt;And here is the error message:&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;So I just inserted the problematic TempTable[Date] inside a MIN aggregator. I know this will not give the expected cumulative sum, but at this point I just want Power BI to stop complaning :). Sure enough no syntax error is detected. However, when I try adding the newly-created [RunningArea] measure as part of my table, Power BI throws the following error:&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;This whole odyssey has been a great learning experience (failure is a great teacher), but I'm really at a loss as to what to do to make this work. Any final suggestions? I promise I will not bother you again after that :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:53:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368659#M166953</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-02T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368698#M166970</link>
      <description>&lt;P&gt;No, feed your FILTER into your SUMX as your table. So, FILTER will return a table, use that as the input for SUMX for its table. So, "wrap" your FILTER statement with a SUMX statement. So something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = 
    SUMX(
      FILTER (
        SUMMARIZECOLUMNS (
            'Date'[Date],
            "RunningBalance",
            CALCULATE ( 
                [Balance], 
                FILTER ( 
                    ALLSELECTED ( 'Date' ), 
                    'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
                )
            )
        ),
        [Date] &amp;lt;= MAX ( [Date] )
    ),[RunningBalance]
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 12:26:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368698#M166970</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-02T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368708#M166976</link>
      <description>&lt;P&gt;Alright, so I put what you suggested:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = 
SUMX(
    FILTER (
        SUMMARIZECOLUMNS (
            'Date'[Date],
            "RunningBalance",
            CALCULATE ( 
                [Balance], 
                FILTER ( 
                    ALLSELECTED ( 'Date' ), 
                    'Date'[Date] &amp;lt;= MAX ( 'Date'[Date] ) 
                )
            )
        ),
        [Date] &amp;lt;= MAX ( [Date] )
    ),    
    [RunningBalance]
)&lt;/PRE&gt;&lt;P&gt;I do not get any syntax error. However, when trying to add the [RunningArea] measure in my table, I get a similar error message to what I saw before:&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;Again thank you so much for all your help. I'll just do without this metric for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 12:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368708#M166976</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-02T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368732#M166995</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="56534" data-lia-user-login="florestal" class="lia-mention lia-mention-user"&gt;florestal&lt;/a&gt;- You gave it your best go, I took a few minutes this morning and sat down and hammered this out. Here you go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given an Enter Data query called "Running"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WstQ3NNM3MjCwUNJRMgBiQ1NTA0NjpVgdsJQ5TAqEoGIWWMQsMcWMDLCIGWIRM8IiZoxFzARFLBYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Date = _t, Cost = _t, Revenue = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Cost", Int64.Type}, {"Revenue", Int64.Type}})
in
    #"Changed Type"&lt;/PRE&gt;&lt;P&gt;With this Running Balance measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningBalance = CALCULATE( SUM([Revenue]), FILTER(ALL(Running), Running[Date] &amp;lt;= MAX(Running[Date])))&lt;/PRE&gt;&lt;P&gt;Created this Running Area measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RunningArea = 
VAR MyTable = SUMMARIZE(FILTER(ALL(Running),Running[Date]&amp;lt;=MAX(Running[Date])),Running[Date],"RunningBalance",[RunningBalance])
RETURN SUMX(MyTable,[RunningBalance])&lt;/PRE&gt;&lt;P&gt;Put it in a table visualization:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 13:17:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368732#M166995</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-02T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368803#M167036</link>
      <description>&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;Wow, the stars are aligning for me not to have this work... Now I'm getting a "Not enough memory" error when trying to add the [RunningArea] measure to a table visual:&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI my PBIX file is small (521 kb), but I do&amp;nbsp;not have access to a lot of memory (4 GB). It's probably time for me to get a new machine&amp;nbsp;:)&amp;nbsp; I'm still marking this as&amp;nbsp;the solution for others to know how this is done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you so much for taking the time to walk me through this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368803#M167036</guid>
      <dc:creator>florestal</dc:creator>
      <dc:date>2018-03-02T15:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total of Cumulative Totals</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368917#M167099</link>
      <description>&lt;P&gt;Awesome! Sorry, nothing I can do about the memory!! :)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Cumulative-Total-of-Cumulative-Totals/m-p/368917#M167099</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-02T18:49:08Z</dc:date>
    </item>
  </channel>
</rss>

