<?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 excluding some data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2599100#M75070</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403587" data-lia-user-login="minasaleh669" class="lia-mention lia-mention-user"&gt;minasaleh669&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeTotalExcludingData =
VAR cumulativeTotal =
    CALCULATE (
        SUM ( 'Table'[ACT_COST] ),
        FILTER (
            ALLEXCEPT ( 'Table', 'Table'[END_DATE] ),
            'Table'[Index] &amp;lt;= MAX ( 'Table'[Index] )  //sum by the order in the screeshot
            //'Table'[WBS_ID] &amp;lt;= MAX ( 'Table'[WBS_ID] ) //sum by WBS_ID ascending
        )
    )
RETURN
    IF (
        MAX ( 'Table'[START_DATE] ) &amp;gt;= DATE ( 2019, 5, 1 )
            &amp;amp;&amp;amp; MAX ( 'Table'[START_DATE] ) &amp;lt;= DATE ( 2019, 7, 1 ),
        cumulativeTotal,
        BLANK ()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As this Measure calculates cumulative total by the order in the screenshot, you need add an extra index column in Power Query Editor(Transform Date). If you just would like to get cumulative total by the order of WBS_ID ascending, then you can try the annotated code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks 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;Also, attached the pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 01:52:18 GMT</pubDate>
    <dc:creator>v-cazheng-msft</dc:creator>
    <dc:date>2022-06-24T01:52:18Z</dc:date>
    <item>
      <title>Cumulative Total excluding some data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592126#M74691</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;in this table &lt;STRONG&gt;START_Date &lt;/STRONG&gt;&amp;amp;&lt;STRONG&gt; END_DATE&lt;/STRONG&gt; columns have 3 values or more (values and their sum), I want&amp;nbsp;to get cumulative for sum values only.... thank u for ur help&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Jun 2022 11:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592126#M74691</guid>
      <dc:creator>minasaleh669</dc:creator>
      <dc:date>2022-06-21T11:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total excluding some data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592175#M74695</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could u help me!!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592175#M74695</guid>
      <dc:creator>minasaleh669</dc:creator>
      <dc:date>2022-06-21T12:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total excluding some data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592177#M74696</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could u help me?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:09:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592177#M74696</guid>
      <dc:creator>minasaleh669</dc:creator>
      <dc:date>2022-06-21T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total excluding some data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592538#M74714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403587" data-lia-user-login="minasaleh669" class="lia-mention lia-mention-user"&gt;minasaleh669&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 14:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2592538#M74714</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-21T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total excluding some data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2599100#M75070</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403587" data-lia-user-login="minasaleh669" class="lia-mention lia-mention-user"&gt;minasaleh669&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this Measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CumulativeTotalExcludingData =
VAR cumulativeTotal =
    CALCULATE (
        SUM ( 'Table'[ACT_COST] ),
        FILTER (
            ALLEXCEPT ( 'Table', 'Table'[END_DATE] ),
            'Table'[Index] &amp;lt;= MAX ( 'Table'[Index] )  //sum by the order in the screeshot
            //'Table'[WBS_ID] &amp;lt;= MAX ( 'Table'[WBS_ID] ) //sum by WBS_ID ascending
        )
    )
RETURN
    IF (
        MAX ( 'Table'[START_DATE] ) &amp;gt;= DATE ( 2019, 5, 1 )
            &amp;amp;&amp;amp; MAX ( 'Table'[START_DATE] ) &amp;lt;= DATE ( 2019, 7, 1 ),
        cumulativeTotal,
        BLANK ()
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As this Measure calculates cumulative total by the order in the screenshot, you need add an extra index column in Power Query Editor(Transform Date). If you just would like to get cumulative total by the order of WBS_ID ascending, then you can try the annotated code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks 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;Also, attached the pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 01:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-excluding-some-data/m-p/2599100#M75070</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-24T01:52:18Z</dc:date>
    </item>
  </channel>
</rss>

