<?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: How to remove data from future dates in a cumulative calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069003#M106404</link>
    <description>&lt;P&gt;Hey tamerj1, thanks for the reply but unfortunatly I could get it to work. I attached a table of how the data should look and how it looks when I input your formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the original:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what happens with your formula:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel as though it should be an IF with the date column, but the IF statement will not let me use the Calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 13:22:10 GMT</pubDate>
    <dc:creator>pnm_100</dc:creator>
    <dc:date>2023-02-08T13:22:10Z</dc:date>
    <item>
      <title>How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3068914#M106394</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an S-Curve graph and I am trying to remove the data in the future dates of the cumulative line in the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a picture of the s-curve graph.&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 cumulative line, I used two formulas: one to calculate the count of the Actuals and another to calculate the cumulative count. See formulas below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count Actual = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(Catalogue[Actual Completion Date]), &lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'[Planned Date],Catalogue[Actual Completion Date]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;**bleep** Count Actual = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Count Actual],&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'[Planned Date],Catalogue[Actual Completion Date]), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'),'Calendar Table Plan'[Planned Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'[Planned Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The calendar table plan is where I am getting the dates and it is connected to my main table. I have to use USERELATIONSHIP to make it work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am thining this is something simple, but I cannot figure it out even after reading various forum entries. Any help is greatly appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:59:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3068914#M106394</guid>
      <dc:creator>pnm_100</dc:creator>
      <dc:date>2023-02-08T12:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3068953#M106400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511546" data-lia-user-login="pnm_100" class="lia-mention lia-mention-user"&gt;pnm_100&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Pleasr try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count Actual =
IF (
    NOT ISEMPTY ( Catalogue ),
    CALCULATE (
        [Count Actual],
        USERELATIONSHIP ( 'Calendar Table Plan'[Planned Date], Catalogue[Actual Completion Date] ),
        FILTER (
            ALL ( 'Calendar Table Plan' ),
            'Calendar Table Plan'[Planned Date]
                &amp;lt;= MAX ( 'Calendar Table Plan'[Planned Date] )
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3068953#M106400</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-08T13:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069003#M106404</link>
      <description>&lt;P&gt;Hey tamerj1, thanks for the reply but unfortunatly I could get it to work. I attached a table of how the data should look and how it looks when I input your formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the original:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what happens with your formula:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel as though it should be an IF with the date column, but the IF statement will not let me use the Calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069003#M106404</guid>
      <dc:creator>pnm_100</dc:creator>
      <dc:date>2023-02-08T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069091#M106410</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511546" data-lia-user-login="pnm_100" class="lia-mention lia-mention-user"&gt;pnm_100&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;**bleep** Count Actual =
IF (
    NOT ISBLANK ( [Count Actual] ),
    CALCULATE (
        [Count Actual],
        USERELATIONSHIP ( 'Calendar Table Plan'[Planned Date], Catalogue[Actual Completion Date] ),
        FILTER (
            ALL ( 'Calendar Table Plan' ),
            'Calendar Table Plan'[Planned Date]
                &amp;lt;= MAX ( 'Calendar Table Plan'[Planned Date] )
        )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069091#M106410</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-08T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069309#M106419</link>
      <description>&lt;P&gt;So that worked, but the issue I have now is the Count Actual has a blank value in 2020-Q2, see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So there is now a break in the line in the graph. How do I fix the Count Actual to be zero if it is blank? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069309#M106419</guid>
      <dc:creator>pnm_100</dc:creator>
      <dc:date>2023-02-08T14:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069470#M106430</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511546" data-lia-user-login="pnm_100" class="lia-mention lia-mention-user"&gt;pnm_100&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Would you please try the following. Whatever the result would be, please share the dax for&amp;nbsp;&lt;SPAN&gt;[Count&amp;nbsp;Actual], that will provide some insights about your data model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cumm. Count Actual =
CALCULATE (
    [Count Actual],
    USERELATIONSHIP ( 'Calendar Table Plan'[Planned Date], Catalogue[Actual Completion Date] ),
    FILTER (
        ALL ( 'Calendar Table Plan' ),
        'Calendar Table Plan'[Planned Date] &amp;lt;= MAX ( Catalogue[Actual Completion Date] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:32:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069470#M106430</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-08T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069492#M106433</link>
      <description>&lt;P&gt;Hey, sorry I did share the Count Actual formula in my first post, but I didn't realive the other formula has a "bleep" in front of it lol. The bleep is supposed to be Cumulative, and I had the first three letters of the word to shorten it. Guess that is a swear word here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formulas again:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count Actual = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Catalogue&lt;/SPAN&gt;&lt;SPAN&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Catalogue&lt;/SPAN&gt;&lt;SPAN&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Cumulative&amp;nbsp;&lt;SPAN&gt;Count Actual = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Count Actual],&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'[Planned Date],Catalogue[Actual Completion Date]), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'),'Calendar Table Plan'[Planned Date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('Calendar Table Plan'[Planned Date])))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula you provided is the same as my cumulative. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:41:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069492#M106433</guid>
      <dc:creator>pnm_100</dc:creator>
      <dc:date>2023-02-08T15:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove data from future dates in a cumulative calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069578#M106446</link>
      <description>&lt;P&gt;Thanks for the help, but I finally found a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the Cumulative Count Actual to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cumm Count Actual = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;CumCountAct&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Count Actual]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Catalogue&lt;/SPAN&gt;&lt;SPAN&gt;[Actual Completion Date]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;))) &lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar Table Plan'&lt;/SPAN&gt;&lt;SPAN&gt;[Planned Date]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;CumCountAct&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:13:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-remove-data-from-future-dates-in-a-cumulative-calculation/m-p/3069578#M106446</guid>
      <dc:creator>pnm_100</dc:creator>
      <dc:date>2023-02-08T16:13:34Z</dc:date>
    </item>
  </channel>
</rss>

