<?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: Yesterdays Date Prior Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032649#M45588</link>
    <description>&lt;P&gt;Just a teeny tiny parenthesis in the wrong place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MONTH(TODAY())-1&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 15:05:03 GMT</pubDate>
    <dc:creator>Arentir</dc:creator>
    <dc:date>2021-08-23T15:05:03Z</dc:date>
    <item>
      <title>Yesterdays Date Prior Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032515#M45586</link>
      <description>&lt;P&gt;Hi, i am trying to create simple DAX formula for yesterdays last month however below seems to not work. Not sure where i am going wrong. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DATE(YEAR(TODAY()),MONTH(TODAY()-1),DAY(TODAY()-1))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Aug 2021 14:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032515#M45586</guid>
      <dc:creator>adam_mac</dc:creator>
      <dc:date>2021-08-23T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterdays Date Prior Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032649#M45588</link>
      <description>&lt;P&gt;Just a teeny tiny parenthesis in the wrong place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MONTH(TODAY())-1&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 15:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032649#M45588</guid>
      <dc:creator>Arentir</dc:creator>
      <dc:date>2021-08-23T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Yesterdays Date Prior Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032789#M45592</link>
      <description>&lt;P&gt;You might have issues when the month is January, &amp;amp; for &lt;SPAN&gt;DAY(TODAY()) = 1 of the month&amp;nbsp;&lt;/SPAN&gt;and for march vs february?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you have a calendar table you can try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;current date Last month = CALCULATE(MAX('Calendar Table'[Date]), DATEADD('Calendar Table'[Date], -1,MONTH))&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;Final yesterday Last month = 
CALCULATE([current date Last month], FILTER(ALL('Calendar Table'), 'Calendar Table'[Date] = TODAY() -1))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 17:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Yesterdays-Date-Prior-Month/m-p/2032789#M45592</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-23T17:42:10Z</dc:date>
    </item>
  </channel>
</rss>

