<?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: Sum Last 3 months excluding the current month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1161809#M17824</link>
    <description>&lt;P&gt;l think this should work:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUMX('Facturación MRS',IF(DATEDIFF('Facturación MRS'[DocDueDate],TODAY(),MONTH) &amp;lt;= 3 &amp;amp;&amp;amp; DATEDIFF('Facturación MRS'[DocDueDate],TODAY(),MONTH) &amp;gt;= 1,'Facturación MRS'[Ventas],0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 16 Jun 2020 05:55:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-16T05:55:57Z</dc:date>
    <item>
      <title>Sum Last 3 months excluding the current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1161530#M17819</link>
      <description>&lt;P&gt;Hello Community&lt;/P&gt;&lt;P&gt;I'm not expert in Power BI and I would like to ask your support regarding a measure of time intelligence in Power Bi&lt;/P&gt;&lt;P&gt;I need to get the sum of last 3 monts but excluding the current month.&lt;/P&gt;&lt;P&gt;Please find the sentence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last_3_Months = CALCULATE(SUM('Facturación MRS'[Ventas]),DATESINPERIOD('Facturación MRS'[DocDueDate],LASTDATE('Facturación MRS'[DocDueDate]),-3,MONTH))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What are I doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Facturación MRS'[Ventas]) : Column where I show the sales&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Facturación MRS'[DocDueDate]: column where it show the full date in Sales Table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I tried to find any solution but I couldn't find.&lt;/P&gt;&lt;P&gt;I'll appreciate your support&lt;/P&gt;&lt;P&gt;Thanks and I look forward to your comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 02:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1161530#M17819</guid>
      <dc:creator>Hvaldes</dc:creator>
      <dc:date>2020-06-16T02:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Last 3 months excluding the current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1161809#M17824</link>
      <description>&lt;P&gt;l think this should work:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUMX('Facturación MRS',IF(DATEDIFF('Facturación MRS'[DocDueDate],TODAY(),MONTH) &amp;lt;= 3 &amp;amp;&amp;amp; DATEDIFF('Facturación MRS'[DocDueDate],TODAY(),MONTH) &amp;gt;= 1,'Facturación MRS'[Ventas],0)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jun 2020 05:55:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1161809#M17824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-16T05:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Last 3 months excluding the current month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1163128#M17849</link>
      <description>&lt;P&gt;Thanks Chris for your support!&lt;/P&gt;&lt;P&gt;It does work!&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:09:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-Last-3-months-excluding-the-current-month/m-p/1163128#M17849</guid>
      <dc:creator>Hvaldes</dc:creator>
      <dc:date>2020-06-16T13:09:45Z</dc:date>
    </item>
  </channel>
</rss>

