<?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 calculate Cumulative monthly saving in year from start date of Project in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2362975#M60445</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204286" data-lia-user-login="kayo" class="lia-mention lia-mention-user"&gt;kayo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(
	SUM([MonthlySaving]),
	DATESYTD(DateTable[DateField])
)&lt;/LI-CODE&gt;
&lt;P&gt;DATESYTD is a time intelligence function so make sure you have a &lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwjFhfvXpaD2AhUXFjQIHfiZCC4QFnoECAcQAQ&amp;amp;url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fguidance%2Fmodel-date-tables&amp;amp;usg=AOvVaw0kf_F2b8O1GbNK-btVNBBG" target="_self"&gt;date table and that it is marked appropriately&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 16:24:01 GMT</pubDate>
    <dc:creator>littlemojopuppy</dc:creator>
    <dc:date>2022-02-27T16:24:01Z</dc:date>
    <item>
      <title>How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2362810#M60430</link>
      <description>&lt;P&gt;Hi I would like to achieve calculating monthly saving of the year&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data with Montly saving starting from project implementation date&lt;/P&gt;&lt;P&gt;Example,&amp;nbsp; May saving 50 euro, then June saving of 30 Euro, then Cumulative saving if June is 50+50+30 = 130&lt;/P&gt;&lt;P&gt;When project implemented in August with saving of 10 euro, then August cumulative saving is 50+50+50+50+30+30+30+10 = 300&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can someone please help&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 10:24:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2362810#M60430</guid>
      <dc:creator>kayo</dc:creator>
      <dc:date>2022-02-27T10:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2362975#M60445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204286" data-lia-user-login="kayo" class="lia-mention lia-mention-user"&gt;kayo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CALCULATE(
	SUM([MonthlySaving]),
	DATESYTD(DateTable[DateField])
)&lt;/LI-CODE&gt;
&lt;P&gt;DATESYTD is a time intelligence function so make sure you have a &lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwjFhfvXpaD2AhUXFjQIHfiZCC4QFnoECAcQAQ&amp;amp;url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-bi%2Fguidance%2Fmodel-date-tables&amp;amp;usg=AOvVaw0kf_F2b8O1GbNK-btVNBBG" target="_self"&gt;date table and that it is marked appropriately&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 16:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2362975#M60445</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2022-02-27T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2363906#M60483</link>
      <description>&lt;P&gt;Thank you Littlemojopuppy for your reply&lt;/P&gt;&lt;P&gt;Your solution igives the same result as TOTALYTD(Sum(Monthly saving), Datetable(Datefield) and returns 210 as cumulative sum,&lt;/P&gt;&lt;P&gt;What I am looking for is to repeat saving after it is implemented&lt;/P&gt;&lt;P&gt;In my example matrix, accumulated sum I want to achieve is 840&lt;/P&gt;&lt;P&gt;Is there way to do?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other word, I want to cumulate value (A cumulation of monthly saving) again to have my result (B)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 09:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2363906#M60483</guid>
      <dc:creator>kayo</dc:creator>
      <dc:date>2022-02-28T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2365342#M60540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204286" data-lia-user-login="kayo" class="lia-mention lia-mention-user"&gt;kayo&lt;/a&gt;&amp;nbsp;apologies...I missed that when I read the initial question.&lt;/P&gt;
&lt;P&gt;I mocked up some data and came up with this...&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 18:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2365342#M60540</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2022-02-28T18:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2366623#M60591</link>
      <description>&lt;P&gt;This is great !&lt;/P&gt;&lt;P&gt;Thank you so much for your help&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 07:44:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2366623#M60591</guid>
      <dc:creator>kayo</dc:creator>
      <dc:date>2022-03-01T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2367549#M60645</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="204286" data-lia-user-login="kayo" class="lia-mention lia-mention-user"&gt;kayo&lt;/a&gt;&amp;nbsp;you're welcome!&amp;nbsp; Glad I could help!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 14:13:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2367549#M60645</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2022-03-01T14:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate Cumulative monthly saving in year from start date of Project</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2367558#M60646</link>
      <description>&lt;P&gt;DAX for measures for anyone who finds this later...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Savings = SUM(RawData[Savings])

YTD Savings = 
TOTALYTD(
    [Total Savings],
    'Calendar'[Date]
)

Cumulative YTD Savings = 
VAR MonthEnding = 
    CALCULATETABLE(
        VALUES('Calendar'[MonthEndingDate]),
        FILTER(
            ALL('Calendar'),
            'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])
        ),
        DATESYTD('Calendar'[Date])
    )
VAR CumulativeSavings =
    CALCULATETABLE(
        ADDCOLUMNS(
            MonthEnding,
            "YTDSavings",
            [YTD Savings]
        ),
        REMOVEFILTERS('Calendar')
    )
RETURN

SUMX(
    CumulativeSavings,
    [YTDSavings]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 14:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-Cumulative-monthly-saving-in-year-from-start/m-p/2367558#M60646</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2022-03-01T14:15:46Z</dc:date>
    </item>
  </channel>
</rss>

