<?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 Create a Table with First and Last Date of Current Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742166#M84311</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out how to create a table that has the first and last date of current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX expressions that I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current_WholeMonth =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var Mindate = MIN( TODAY() )&lt;/P&gt;&lt;P&gt;Var Maxdate = MAX( TODAY() )&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;CALENDAR (Mindate, Maxdate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, it states an error that mentions MIN only accepts a column reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has a workaround for this. If MIN only accepts a column reference, how should I change the DAX expressions so that it only returns the first and last date of the current month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output (As of 2nd September 2022):&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>Fri, 02 Sep 2022 03:26:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-02T03:26:27Z</dc:date>
    <item>
      <title>Create a Table with First and Last Date of Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742166#M84311</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to figure out how to create a table that has the first and last date of current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DAX expressions that I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current_WholeMonth =&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var Mindate = MIN( TODAY() )&lt;/P&gt;&lt;P&gt;Var Maxdate = MAX( TODAY() )&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;CALENDAR (Mindate, Maxdate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, it states an error that mentions MIN only accepts a column reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has a workaround for this. If MIN only accepts a column reference, how should I change the DAX expressions so that it only returns the first and last date of the current month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output (As of 2nd September 2022):&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>Fri, 02 Sep 2022 03:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742166#M84311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-02T03:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Table with First and Last Date of Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742194#M84315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try something like below.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Current_WholeMonth Table =
VAR _mindate =
    EOMONTH ( TODAY (), -1 ) + 1
VAR _maxdate =
    EOMONTH ( TODAY (), 0 )
RETURN
    CALENDAR ( _mindate, _maxdate )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 03:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742194#M84315</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-09-02T03:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Table with First and Last Date of Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742197#M84316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Current_WholeMonth =
VAR Maxdate =
    EOMONTH ( TODAY (), 0 )
VAR Mindate =
    EOMONTH ( TODAY (), -1 ) + 1
RETURN
    CALENDAR ( Mindate, Maxdate )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 03:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742197#M84316</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-02T03:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Table with First and Last Date of Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742203#M84317</link>
      <description>&lt;P&gt;Thank you very much! It works like a charm.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 03:51:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742203#M84317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-02T03:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Table with First and Last Date of Current Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742204#M84318</link>
      <description>&lt;P&gt;Thank you very much! Finally, get the table I wanted.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 03:52:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-Table-with-First-and-Last-Date-of-Current-Month/m-p/2742204#M84318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-02T03:52:41Z</dc:date>
    </item>
  </channel>
</rss>

