<?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: Problem with Previousmonth in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813281#M38331</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295674" data-lia-user-login="giuliapiazza94" class="lia-mention lia-mention-user"&gt;giuliapiazza94&lt;/a&gt; , in case you want to create a table then &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table of last month =&lt;/P&gt;
&lt;P&gt;calendar(eomonth(today(),-2)+1,eomonth(today(),-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need to measure use time intelligence with a date table&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;/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>Thu, 29 Apr 2021 07:42:03 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-29T07:42:03Z</dc:date>
    <item>
      <title>Problem with Previousmonth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813168#M38326</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need the dates of the previous month but using a different date than the current one for example the date of the last reload (5/3/2021)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I try using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Month last reload = CALCULATE(PREVIOUSMONTH('Diagnostica'[Last reload]), MONTH('Diagnostica'[Last reload])-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Diagnostica is a table with 1 column and 1 row where is the date of the last reload.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It doesn't work. Can you help me please?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 07:07:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813168#M38326</guid>
      <dc:creator>giuliapiazza94</dc:creator>
      <dc:date>2021-04-29T07:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Previousmonth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813281#M38331</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295674" data-lia-user-login="giuliapiazza94" class="lia-mention lia-mention-user"&gt;giuliapiazza94&lt;/a&gt; , in case you want to create a table then &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table of last month =&lt;/P&gt;
&lt;P&gt;calendar(eomonth(today(),-2)+1,eomonth(today(),-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need to measure use time intelligence with a date table&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;/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>Thu, 29 Apr 2021 07:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813281#M38331</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-29T07:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Previousmonth</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813670#M38339</link>
      <description>&lt;P&gt;I've tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;table of last month =&lt;/P&gt;&lt;P&gt;calendar(eomonth(today(),-2)+1,eomonth(today(),-1))&amp;nbsp;&lt;/P&gt;&lt;P&gt;but doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is MdxScript(model) (14,28)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you know why?&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 09:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-Previousmonth/m-p/1813670#M38339</guid>
      <dc:creator>giuliapiazza94</dc:creator>
      <dc:date>2021-04-29T09:26:27Z</dc:date>
    </item>
  </channel>
</rss>

