<?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: datesinperiod but for start date use previous month as only need to report on complete/whole months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265320#M120864</link>
    <description>&lt;P&gt;I managed to solve my issue using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table = 
CALCULATETABLE(
    'Table',
    DATESINPERIOD(
        'Date'[Date],
        EOMONTH(MAX('Date'[Date]), -1),
        -13,
        MONTH
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 02 Jun 2023 09:09:55 GMT</pubDate>
    <dc:creator>akhaliq7</dc:creator>
    <dc:date>2023-06-02T09:09:55Z</dc:date>
    <item>
      <title>datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3264368#M120809</link>
      <description>&lt;P&gt;I have the following datesinperiod code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table = 
 CALCULATETABLE(
     'Table',
     DATESINPERIOD(
         'Date'[Date],
         PREVIOUSMONTH(MAX('Date'[Date])),
         -12,
         MONTH
     )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But want the start date to be the previous month as only reporting on complete/whole months. e.g. today is 01/06/2023 so need my max date to be 31st of may 2023 and need the date to start 1st of june 2022&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 16:21:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3264368#M120809</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2023-06-01T16:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3264622#M120822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307422" data-lia-user-login="akhaliq7" class="lia-mention lia-mention-user"&gt;akhaliq7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Table =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;'Table',&lt;BR /&gt;FILTER (&lt;BR /&gt;DATESINPERIOD (&lt;BR /&gt;'Date'[Date],&lt;BR /&gt;PREVIOUSMONTH ( MAX ( 'Date'[Date] ) ),&lt;BR /&gt;-12,&lt;BR /&gt;MONTH&lt;BR /&gt;),&lt;BR /&gt;FORMAT ( 'Date'[Date], "YYMM" ) &amp;lt; FORMAT ( TODAY (), "YYMM" )&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 20:09:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3264622#M120822</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-01T20:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265301#M120863</link>
      <description>&lt;P&gt;I am getting the following error message:&amp;nbsp;The first argument to 'PREVIOUSMONTH' must specify a column.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 08:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265301#M120863</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2023-06-02T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265320#M120864</link>
      <description>&lt;P&gt;I managed to solve my issue using the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table = 
CALCULATETABLE(
    'Table',
    DATESINPERIOD(
        'Date'[Date],
        EOMONTH(MAX('Date'[Date]), -1),
        -13,
        MONTH
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265320#M120864</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2023-06-02T09:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265325#M120865</link>
      <description>&lt;P&gt;Just to add when I created my date table I have set max date to today()&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3265325#M120865</guid>
      <dc:creator>akhaliq7</dc:creator>
      <dc:date>2023-06-02T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: datesinperiod but for start date use previous month as only need to report on complete/whole months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3304619#M123396</link>
      <description>&lt;P&gt;Based on your explanation, you need to make it -12 instead of -13... Using -13 would make the range: May 1, 2022 - May 31 2023; using -12 would make it&amp;nbsp; June 1, 2022 - May 31, 2023.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 15:15:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/datesinperiod-but-for-start-date-use-previous-month-as-only-need/m-p/3304619#M123396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-27T15:15:11Z</dc:date>
    </item>
  </channel>
</rss>

