<?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: MTD CALCULATIONS FOR LAST 5 MONTHS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000415#M44404</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Prev MTD = CALCULATE(&lt;SPAN&gt;[Sec_vol]&lt;/SPAN&gt;, PREVIOUSMONTH(DATESMTD(&lt;SPAN&gt;db_CSA_Data Yield_Sec_Test'[InvoiceDate]&lt;/SPAN&gt;)))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this answers your question, please mark it as a solution.&amp;nbsp; Kudos are always appreciated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 13:55:41 GMT</pubDate>
    <dc:creator>Tanushree_Kapse</dc:creator>
    <dc:date>2021-08-05T13:55:41Z</dc:date>
    <item>
      <title>MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997372#M44300</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are well,&lt;/P&gt;&lt;P&gt;I have one problem,&lt;/P&gt;&lt;P&gt;I have to calculate MTD for last 5 months like right now we have in Aug21 so last 5 months would be Aug21,July21,Jun21,May21,Apr21&amp;nbsp;&lt;/P&gt;&lt;P&gt;and today is 4th Aug21&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence Last 5 months MTD would be&lt;/P&gt;&lt;P&gt;MTD Aug21= 1-4th Aug&lt;/P&gt;&lt;P&gt;MTD July21 = 1-4th July&lt;/P&gt;&lt;P&gt;MTD Jun21=1-4th June&lt;/P&gt;&lt;P&gt;MTD May21=1-4th May&lt;/P&gt;&lt;P&gt;MTD Apr=1-4th Apr&lt;/P&gt;&lt;P&gt;and it will based on today date.&lt;/P&gt;&lt;P&gt;Please help me on this please.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 09:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997372#M44300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-04T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997477#M44302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try:&lt;BR /&gt;Measure=&lt;BR /&gt;CALCULATE(TOTALMTD(SUM(Total Sales),Table[Date]), PARALLELPERIOD(Table[Date], -4, MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 10:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997477#M44302</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-04T10:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997618#M44308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying this but out is showing blank&lt;/P&gt;&lt;DIV&gt;Pre_Month-2 = CALCULATE(TOTALMTD([Sec_Vol],'db_CSA_Data Yield_Sec_Test'[InvoiceDate],PARALLELPERIOD('db_CSA_Data Yield_Sec_Test'[InvoiceDate],-3,MONTH)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;[Sec_vol]- it is already in sum&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help me on this&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/1997618#M44308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-04T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000292#M44399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your great help,&lt;/P&gt;&lt;P&gt;One more help please as MTD for current is showing correct number but while previous month it is showing full month data.&lt;/P&gt;&lt;P&gt;for Example today is 5th aug then MTD is 1-5th aug sales data similarly for previous month mtd it should 1-5th July of total sales&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help on this thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 13:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000292#M44399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T13:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000415#M44404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Prev MTD = CALCULATE(&lt;SPAN&gt;[Sec_vol]&lt;/SPAN&gt;, PREVIOUSMONTH(DATESMTD(&lt;SPAN&gt;db_CSA_Data Yield_Sec_Test'[InvoiceDate]&lt;/SPAN&gt;)))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this answers your question, please mark it as a solution.&amp;nbsp; Kudos are always appreciated.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 13:55:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000415#M44404</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-05T13:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000469#M44407</link>
      <description>&lt;P&gt;This dax giving me full month sales instead of 1-5th Jul21.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 14:22:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000469#M44407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000482#M44408</link>
      <description>&lt;P&gt;output should be 758 for 1-4th July 21.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 14:27:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000482#M44408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: MTD CALCULATIONS FOR LAST 5 MONTHS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000585#M44410</link>
      <description>&lt;P&gt;Got it by my own logic,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;prev month MTD Vol = CALCULATE(SUM('VIT-IK SAP_Secondary_data'[Volume]),FILTER('VIT-IK SAP_Secondary_data',DAY('VIT-IK SAP_Secondary_data'[InvoiceDate])&amp;gt;=1 &amp;amp;&amp;amp; DAY('VIT-IK SAP_Secondary_data'[InvoiceDate])&amp;lt;=DAY(MAX('VIT-IK SAP_Secondary_data'[InvoiceDate]))),FILTER('VIT-IK SAP_Secondary_data',(YEAR('VIT-IK SAP_Secondary_data'[InvoiceDate])=YEAR(MAX('VIT-IK SAP_Secondary_data'[InvoiceDate]))&amp;amp;&amp;amp;MONTH('VIT-IK SAP_Secondary_data'[InvoiceDate])=MONTH(MAX('VIT-IK SAP_Secondary_data'[InvoiceDate]))-1)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is giving me 1-4th July 21 vol=758 that is correct&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Aug 2021 15:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-CALCULATIONS-FOR-LAST-5-MONTHS/m-p/2000585#M44410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T15:05:15Z</dc:date>
    </item>
  </channel>
</rss>

