<?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 Hiding Future Months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728725#M1641</link>
    <description>&lt;PRE&gt;Cumulative E&amp;amp;A Wells :=
var __currentMinDate = min('Calendar'[Date])
var __today = TODAY()
var __cumulativeValue =
	CALCULATE (
	    COUNTROWS ( 'FM Full Export' ),
	    DATESYTD( 'Calendar'[Date] ),
	    ALLSELECTED ( 'Calendar'[Date] )
	)
var __shouldDisplay =
	 -- check if the current period is
	 -- fully contained in the future
	NOT ( _currentMinDate &amp;gt;= __today ) -- check which you want &amp;gt;= or &amp;gt;
return
	if( __shouldDisplay, __cumulativeValue)&lt;/PRE&gt;</description>
    <pubDate>Mon, 01 Jul 2019 16:20:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-01T16:20:45Z</dc:date>
    <item>
      <title>Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723460#M1452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a pivot table and line graph in Excel that shows a cumulative total by month for a five year period. The issue is that I need the pivot table to hide future values/show future values as blank so that my line graph does not extend&amp;nbsp;&lt;SPAN&gt;as a stright horizontal line to the end of the year but stops at a certain month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a date table linked up to my single data table and would prefer to do this using only measures but would also consider using a combination of measures and calculated columns if that simplifies the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I go about doing this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 09:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723460#M1452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-25T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723699#M1461</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; can you share your DAX expression you have created and I can get you the trick to fix it.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 13:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723699#M1461</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-25T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723718#M1465</link>
      <description>&lt;P&gt;Thanks parry2k,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula is as follow (excuse the formatting if incorrect):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative E&amp;amp;A Wells:=CALCULATE(COUNTROWS('FM Full Export'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ALLSELECTED('Calendar'[Month]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ISONORAFTER('Calendar'[Month],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MAX('Calendar'[Month]),DESC)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me the correct cumualtive total for 2014 - 2019 but I need a null value for July - December 2019 in my pivot table.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 13:45:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723718#M1465</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-25T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723938#M1471</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; try this, add a measure for row count, I called it&amp;nbsp;&lt;STRONG&gt;My Row Count&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;My Row Count = COUNTROWS('FM Full Export')

Cumulative E&amp;amp;A Wells:=CALCULATE([My Row Count],
            FILTER(ALLSELECTED('Calendar'[Month]),
                     ISONORAFTER('Calendar'[Month],
                     MAX('Calendar'[Month]),DESC))) *
DIVIDE( [My Row Count], [My Row Count] )&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2019 16:21:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/723938#M1471</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-25T16:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728524#M1627</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help so far and apologies for the kate reply. I think the formula is almost correct but not quite.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using your suggestion I have managed to get a cumulative total by month for each year but only when the months are ordered alphabetically. When ordered chronologically the cumulative totals are all out of place.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need a 0 (zero) in months with no change so that my graph follows a horizontal line rather than dropping to the x axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 12:46:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728524#M1627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T12:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728648#M1632</link>
      <description>&lt;PRE&gt;Cumulative E&amp;amp;A Wells :=
var __currentMaxDate = max('Calendar'[Date])
var __currentMinDate = min('Calendar'[Date])
var __today = TODAY()
var __cumulativeValue =
	CALCULATE (
	    COUNTROWS ( 'FM Full Export' ),
	    'Calendar'[Date] &amp;lt;= __currentMaxDate,
	    ALLSELECTED ( 'Calendar'[Date] )
	)
var __shouldDisplay =
	 -- check if the current period is
	 -- fully contained in the future
	NOT ( _currentMinDate &amp;gt;= __today ) -- check which you want &amp;gt;= or &amp;gt;
return
	if( __shouldDisplay, __cumulativeValue)&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 14:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728648#M1632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728716#M1640</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- so close. The formula is giving me a cumulative total over the entire 2014 - 2019 period, whereas I need a new cumulative total for each year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything else works as requred.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 16:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728716#M1640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728725#M1641</link>
      <description>&lt;PRE&gt;Cumulative E&amp;amp;A Wells :=
var __currentMinDate = min('Calendar'[Date])
var __today = TODAY()
var __cumulativeValue =
	CALCULATE (
	    COUNTROWS ( 'FM Full Export' ),
	    DATESYTD( 'Calendar'[Date] ),
	    ALLSELECTED ( 'Calendar'[Date] )
	)
var __shouldDisplay =
	 -- check if the current period is
	 -- fully contained in the future
	NOT ( _currentMinDate &amp;gt;= __today ) -- check which you want &amp;gt;= or &amp;gt;
return
	if( __shouldDisplay, __cumulativeValue)&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 16:20:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728725#M1641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728728#M1642</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;: Perfect - thanks so much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 16:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/728728#M1642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-01T16:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total Hiding Future Months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/1116792#M16349</link>
      <description>&lt;P&gt;Hi, trying to do something similar but QTD.&amp;nbsp; But I am getting blanks/gaps in the data where there are no sales duing the quarter, like the weekends.&amp;nbsp; How do I get continuous data filling these gaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative Rev QTD:=var __currentMinDate = min('Calendar'[Date])&lt;BR /&gt;var __today = TODAY()&lt;BR /&gt;var __cumulativeValue =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;sumx([Unit Price]*[Shipped Quantity]),&lt;BR /&gt;DATESQTD( 'Calendar'[Date] ),&lt;BR /&gt;ALLSELECTED ( 'Calendar'[Date] )&lt;BR /&gt;)&lt;BR /&gt;var __shouldDisplay =&lt;BR /&gt;-- check if the current period is&lt;BR /&gt;-- fully contained in the future&lt;BR /&gt;NOT ( __currentMinDate &amp;gt;= __today ) -- check which you want &amp;gt;= or &amp;gt;&lt;BR /&gt;return&lt;BR /&gt;if( __shouldDisplay, __cumulativeValue)&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 01:48:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-Hiding-Future-Months/m-p/1116792#M16349</guid>
      <dc:creator>evanj</dc:creator>
      <dc:date>2020-05-25T01:48:43Z</dc:date>
    </item>
  </channel>
</rss>

