<?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 Max Month not changing when filters applied in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3683802#M143079</link>
    <description>&lt;P&gt;I am trying to pull in current max month text which with no filter I would expect "February" but if I filter out February I would expect "January" to return. My issue is on CurrentMonthText for some reason my PriorMonthText works as expected. I am using this to populate a Title field formula which is why they end with "&amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CurrentMonthText = FORMAT(DATE(1,MONTH(MAX(Query2[File Date])),1), "MMMM") &amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; *when no filter applied returns "February"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; *When I filter out February, "February" is still returning when I expect "January"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PriorMonthText = FORMAT(DATE(1,MONTH(MAX(Query2[File Date]))-1,1), "MMMM") &amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*when no filter is applied returns "January"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*when I filter out February, "December" is returned as expected&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 18:20:48 GMT</pubDate>
    <dc:creator>nryan688</dc:creator>
    <dc:date>2024-02-06T18:20:48Z</dc:date>
    <item>
      <title>Max Month not changing when filters applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3683802#M143079</link>
      <description>&lt;P&gt;I am trying to pull in current max month text which with no filter I would expect "February" but if I filter out February I would expect "January" to return. My issue is on CurrentMonthText for some reason my PriorMonthText works as expected. I am using this to populate a Title field formula which is why they end with "&amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CurrentMonthText = FORMAT(DATE(1,MONTH(MAX(Query2[File Date])),1), "MMMM") &amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; *when no filter applied returns "February"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; *When I filter out February, "February" is still returning when I expect "January"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PriorMonthText = FORMAT(DATE(1,MONTH(MAX(Query2[File Date]))-1,1), "MMMM") &amp;amp; " Errors"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*when no filter is applied returns "January"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*when I filter out February, "December" is returned as expected&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3683802#M143079</guid>
      <dc:creator>nryan688</dc:creator>
      <dc:date>2024-02-06T18:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max Month not changing when filters applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3684255#M143099</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 00:43:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3684255#M143099</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-07T00:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Max Month not changing when filters applied</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3684575#M143114</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686420" data-lia-user-login="nryan688" class="lia-mention lia-mention-user"&gt;nryan688&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following dax.:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CurrentMonthText =
FORMAT(
MAXX(
    ALLSELECTED('Query2'),[File Date]),"MMMM") &amp;amp;" Errors"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;PriorMonthText =
FORMAT(
EOMONTH(MAXX(
    ALLSELECTED('Query2'),[File Date]),-1),"MMMM") &amp;amp;" Errors"&lt;/LI-CODE&gt;
&lt;P&gt;The slicer has no selected state:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Slicer unchecked state:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 04:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-Month-not-changing-when-filters-applied/m-p/3684575#M143114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-07T04:06:44Z</dc:date>
    </item>
  </channel>
</rss>

