<?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: First day of current month but in the previous year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1873719#M40203</link>
    <description>&lt;P&gt;Thank you! Just what I needed as I needed the date as a scalar.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 22:39:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-31T22:39:37Z</dc:date>
    <item>
      <title>First day of current month but in the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870765#M40111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking to calculate the first day of the current month but in the previous year in a dax measure. So if ran today it would give me 5/1/2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 22:50:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870765#M40111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-28T22:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: First day of current month but in the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870810#M40113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a 'Date' table and you're wanting to create a date filter, you can write this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SAMEPERIODLASTYEAR ( STARTOFMONTH ( TREATAS ( { TODAY () }, 'Date'[Date] ) ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;If you instead need the date as a scalar, you could write something like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EOMONTH ( TODAY(), -13 ) + 1&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 00:04:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870810#M40113</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-05-29T00:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: First day of current month but in the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870963#M40125</link>
      <description>&lt;P&gt;Time intelligence functions and time functions are totoally different,&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 12:08:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1870963#M40125</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-05-29T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: First day of current month but in the previous year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1873719#M40203</link>
      <description>&lt;P&gt;Thank you! Just what I needed as I needed the date as a scalar.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 22:39:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-day-of-current-month-but-in-the-previous-year/m-p/1873719#M40203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T22:39:37Z</dc:date>
    </item>
  </channel>
</rss>

