<?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 Date Filtering - +2 months from current date without including all months in between in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2492415#M68675</link>
    <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 pages where each of the pages should show only the specific values for "this month", "next month", "+2 month".&lt;BR /&gt;&lt;BR /&gt;Example for this month:&lt;BR /&gt;Page 1: Shows only values for May 2022 ("this month")&lt;/P&gt;&lt;P&gt;Page 2: Shows only values for June 2022&amp;nbsp;("next month")&lt;/P&gt;&lt;P&gt;Page 3: Shows only values for July&amp;nbsp; 202 ("+2 month")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed the first two pages with the relative date filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the third page, because if I make it with a relative filter, it includes the values for June AND July, as below and I only want to see July.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example of the cards I am using to show this data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the related fields for baselines that I am using to attempt to get this data, both on the "DBeaver Connection" table.&lt;/P&gt;&lt;P&gt;Baseline #'s = MS110 Baseline #'s (whole number field)&lt;/P&gt;&lt;P&gt;Dates =&amp;nbsp;MS110 (B) (date field)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 06:15:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-04T06:15:16Z</dc:date>
    <item>
      <title>Date Filtering - +2 months from current date without including all months in between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2492415#M68675</link>
      <description>&lt;P&gt;Hi There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 pages where each of the pages should show only the specific values for "this month", "next month", "+2 month".&lt;BR /&gt;&lt;BR /&gt;Example for this month:&lt;BR /&gt;Page 1: Shows only values for May 2022 ("this month")&lt;/P&gt;&lt;P&gt;Page 2: Shows only values for June 2022&amp;nbsp;("next month")&lt;/P&gt;&lt;P&gt;Page 3: Shows only values for July&amp;nbsp; 202 ("+2 month")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have managed the first two pages with the relative date filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the third page, because if I make it with a relative filter, it includes the values for June AND July, as below and I only want to see July.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example of the cards I am using to show this data.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the related fields for baselines that I am using to attempt to get this data, both on the "DBeaver Connection" table.&lt;/P&gt;&lt;P&gt;Baseline #'s = MS110 Baseline #'s (whole number field)&lt;/P&gt;&lt;P&gt;Dates =&amp;nbsp;MS110 (B) (date field)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:15:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2492415#M68675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T06:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filtering - +2 months from current date without including all months in between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2492507#M68681</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Add an additional filter to your measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure 1 =&lt;/P&gt;
&lt;P&gt;var _max = Eomonth(maxx(allselected('Date'), 'Date'[Date] ),0)&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;calculate([Measure], filter('Date', eomonth('Date'[Date] ,0) = _max) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All measure two follow above, of use one measure like that as visual level filter and check for non blank&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 07:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2492507#M68681</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-04T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filtering - +2 months from current date without including all months in between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2494552#M68780</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. That didn't seem to work in the format that I'm using though, could you explain further?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My baseline # field isn't currently a calculated measure, its just a count of the items in the column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Siobhan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 01:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2494552#M68780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T01:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filtering - +2 months from current date without including all months in between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2501228#M69151</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this solution.&lt;/P&gt;
&lt;P&gt;1 Create a Measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DateIn+2Month =
VAR CurrentMon =
    MONTH ( TODAY () )
VAR ExpectedMon = CurrentMon + 2
RETURN
    CALCULATE (
        COUNT ( 'Table'[MS110(B)] ),
        FILTER ( 'Table', MONTH ( 'Table'[MS110(B)] ) = ExpectedMon )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 Use this Measure as a visual filter, then only data for July will be displayed in the visual&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, attach the sample pbix as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 07:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/2501228#M69151</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-05-09T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Filtering - +2 months from current date without including all months in between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/3545100#M136311</link>
      <description>&lt;P&gt;There is gonna be an issue to this. What if current month is November 2023, the future 2nd month should be January 2024 right?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;what should we do to involve the Year in the calculation? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 15:36:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Filtering-2-months-from-current-date-without-including-all/m-p/3545100#M136311</guid>
      <dc:creator>EvanGetsItDone</dc:creator>
      <dc:date>2023-11-21T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

