<?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 calculate if current month performs better the previous in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-if-current-month-performs-better-the-previous/m-p/2984971#M100136</link>
    <description>&lt;P&gt;I have such table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It will always take 3 latest month, I need to display new column in this table that will show is the month performed better or worse then previous based on spending value. I can't assign month names or number as the table automatically takes 3 latest month&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 18:14:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-22T18:14:58Z</dc:date>
    <item>
      <title>calculate if current month performs better the previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-if-current-month-performs-better-the-previous/m-p/2984971#M100136</link>
      <description>&lt;P&gt;I have such table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It will always take 3 latest month, I need to display new column in this table that will show is the month performed better or worse then previous based on spending value. I can't assign month names or number as the table automatically takes 3 latest month&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-if-current-month-performs-better-the-previous/m-p/2984971#M100136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-22T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: calculate if current month performs better the previous</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-if-current-month-performs-better-the-previous/m-p/2985693#M100185</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , If you have date or you can create one with help from month and year. You can join date with the date of date table and use Time Intelligence &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period, &lt;BR /&gt;Custom Period till date: &lt;A href="https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s" target="_blank"&gt;https://youtu.be/aU2aKbnHuWs&amp;amp;t=145s&lt;/A&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or try the new Offset function&lt;/P&gt;
&lt;P&gt;Power BI Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: &lt;A href="https://youtu.be/5YMlkDNGr0U" target="_blank"&gt;https://youtu.be/5YMlkDNGr0U&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 04:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-if-current-month-performs-better-the-previous/m-p/2985693#M100185</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-23T04:20:36Z</dc:date>
    </item>
  </channel>
</rss>

