<?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 Difference in values between 2 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2660158#M78831</link>
    <description>&lt;P&gt;Hello all!&amp;nbsp;&lt;BR /&gt;Im trying to create a measure that calculates the difference between this months (FloatDays)&amp;nbsp; and Last months&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;below is the table im using&amp;nbsp; just a simple calculation like (ThisMonthsFloatTotal - LastMonthsFloatTotal)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for some reason im struggling to make this in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;any suggestions?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 19:56:44 GMT</pubDate>
    <dc:creator>yazenbarakat123</dc:creator>
    <dc:date>2022-07-25T19:56:44Z</dc:date>
    <item>
      <title>Difference in values between 2 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2660158#M78831</link>
      <description>&lt;P&gt;Hello all!&amp;nbsp;&lt;BR /&gt;Im trying to create a measure that calculates the difference between this months (FloatDays)&amp;nbsp; and Last months&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;below is the table im using&amp;nbsp; just a simple calculation like (ThisMonthsFloatTotal - LastMonthsFloatTotal)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for some reason im struggling to make this in power bi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;any suggestions?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 19:56:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2660158#M78831</guid>
      <dc:creator>yazenbarakat123</dc:creator>
      <dc:date>2022-07-25T19:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in values between 2 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2660462#M78871</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="411660" data-lia-user-login="yazenbarakat123" class="lia-mention lia-mention-user"&gt;yazenbarakat123&lt;/a&gt; , You can use time intelligence with date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;examples&lt;/P&gt;
&lt;P&gt;MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))&lt;BR /&gt;last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))&lt;BR /&gt;last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))&lt;BR /&gt;next month Sales = CALCULATE(SUM(Sales[Sales Amount]),nextmonth('Date'[Date]))&lt;BR /&gt;this month = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH('Date'[Date])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Month on Month with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6LUBbvcxtKA" target="_blank"&gt;https://www.youtube.com/watch?v=6LUBbvcxtKA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 01:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2660462#M78871</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-26T01:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in values between 2 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2666833#M79315</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="411660" data-lia-user-login="yazenbarakat123" class="lia-mention lia-mention-user"&gt;yazenbarakat123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following mesaures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last months = 
CALCULATE (
    MAX ( 'Table'[FloatDays] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[ActivityID] = MAX ( 'Table'[ActivityID] )
            &amp;amp;&amp;amp; 'Table'[Month] = EDATE ( MAX ( 'Table'[Month] ), -1 )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Resilt = IF(ISBLANK('Table'[Last months]),BLANK(), MAX('Table'[FloatDays])-'Table'[Last months])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 08:32:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2666833#M79315</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-07-28T08:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in values between 2 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2679544#M80199</link>
      <description>&lt;P&gt;Thank you for the response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp; this works perfectly!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 18:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Difference-in-values-between-2-months/m-p/2679544#M80199</guid>
      <dc:creator>yazenbarakat123</dc:creator>
      <dc:date>2022-08-03T18:23:51Z</dc:date>
    </item>
  </channel>
</rss>

