<?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 Not Working Properly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/873194#M7263</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33343" data-lia-user-login="AltGr9" class="lia-mention lia-mention-user"&gt;AltGr9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there must be another sort column in play (possibly on 'Dimension Month[YearMonth]).&lt;/P&gt;&lt;P&gt;Try the expression below, which will remove all filters from the 'Dimension Month' table apart from Month ID &amp;lt;= MaxMonthID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ordered Running Total =
VAR MaxMonthID = MAX ( 'Dimension Month'[Month ID] )
VAR Result =
    CALCULATE (
        SUM ( 'Fact Monthly Project Rollup'[Capital Expenditure] ),
        FILTER (
            ALL ( 'Dimension Month' ),
            'Dimension Month'[Month ID] &amp;lt;= MaxMonthID
        ),
        'Dimension Capital Expenditure Type'[Capital Expenditure Type] = "Ordered"
    )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 09:21:21 GMT</pubDate>
    <dc:creator>MartynRamsden</dc:creator>
    <dc:date>2019-12-12T09:21:21Z</dc:date>
    <item>
      <title>Cumulative Total Not Working Properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/871919#M7230</link>
      <description>&lt;P&gt;Hello Power BI Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Fact table connected to a Month Dimension table using MonthID, and a running total showing Committed spend:&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;&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;This shows me exactly what I want to see. I can see that the business was committed to 11,430.00 of spend until June (201906). Then in August they committed to an additional 15,870.60 spend, and in November (201911) they spent half of that 7,935.30. Great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, I'm using the MonthID in the drill-down, and I don't want to because it looks ugly. I want it to look like the full month name, like this:&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;&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;The problem, as you can see, is that &lt;EM&gt;now&lt;/EM&gt;&amp;nbsp; my cumulative total for Committed has disappeared! And yet all I've done is change the field from 'Dimension Month'[MonthID]&amp;nbsp; to&amp;nbsp;&lt;SPAN&gt;'Dimension Month'[YearMonth].&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My cumulative total for Committed is arrived at by subtracting my Received Running Total from my Ordered Running Total (as follows) - can anyone help me achieve a Committed running total with a full month name, as in the image above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 10:51:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/871919#M7230</guid>
      <dc:creator>AltGr9</dc:creator>
      <dc:date>2019-12-11T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Not Working Properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/872276#M7240</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33343" data-lia-user-login="AltGr9" class="lia-mention lia-mention-user"&gt;AltGr9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;the 'Month Name Alternative' column in your month dimension table sorted by another column?&lt;/P&gt;&lt;P&gt;If so, you'll need to include that in your measure too. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ordered Running Total = 
VAR MaxMonthID = MAX ( 'Dimension Month'[Month ID] )
VAR Result =
CALCULATE (
	SUM ( 'Fact Monthly Project Rollup'[Capital Expenditure] ),
	ALL( 'Dimension Month'[Month Name Alternative], 'Dimension Month'[Month Name Alternative Sort]  ),
	'Dimension Month'[Month ID] &amp;lt;= MaxMonthID,
	'Dimension Capital Expenditure Type'[Capital Expenditure Type] = "Ordered"
)
RETURN Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/872276#M7240</guid>
      <dc:creator>MartynRamsden</dc:creator>
      <dc:date>2019-12-11T16:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Not Working Properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/872372#M7242</link>
      <description>&lt;P&gt;Thank you very much Martyn. The column was indeed sorted by another, and I added that to the ALL clause of both of the measures making up my Committed measure: [Ordered Running Total] and [Received Running Total].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, it didn't work. Same result as before.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 17:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/872372#M7242</guid>
      <dc:creator>AltGr9</dc:creator>
      <dc:date>2019-12-11T17:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Not Working Properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/873194#M7263</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33343" data-lia-user-login="AltGr9" class="lia-mention lia-mention-user"&gt;AltGr9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there must be another sort column in play (possibly on 'Dimension Month[YearMonth]).&lt;/P&gt;&lt;P&gt;Try the expression below, which will remove all filters from the 'Dimension Month' table apart from Month ID &amp;lt;= MaxMonthID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Ordered Running Total =
VAR MaxMonthID = MAX ( 'Dimension Month'[Month ID] )
VAR Result =
    CALCULATE (
        SUM ( 'Fact Monthly Project Rollup'[Capital Expenditure] ),
        FILTER (
            ALL ( 'Dimension Month' ),
            'Dimension Month'[Month ID] &amp;lt;= MaxMonthID
        ),
        'Dimension Capital Expenditure Type'[Capital Expenditure Type] = "Ordered"
    )
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:21:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/873194#M7263</guid>
      <dc:creator>MartynRamsden</dc:creator>
      <dc:date>2019-12-12T09:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Not Working Properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/874453#M7306</link>
      <description>&lt;P&gt;Greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 09:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Not-Working-Properly/m-p/874453#M7306</guid>
      <dc:creator>AltGr9</dc:creator>
      <dc:date>2019-12-13T09:22:46Z</dc:date>
    </item>
  </channel>
</rss>

