<?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: MAX Date filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1372192#M25022</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written it exactly as you typed and it is unfortuantely still not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps the attached PBI file might be of some use ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 13:46:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-15T13:46:37Z</dc:date>
    <item>
      <title>MAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371021#M24981</link>
      <description>&lt;P&gt;Good Day,&lt;/P&gt;&lt;P&gt;I have an issue where a DAX formula is not ouputting correctly. Essentially I wrote formulas to calculate the value difference of items from a previous month, which ouputs correctly. Now I want to filter on the MAX selected date (wrote this in DAX) for those values but it does not work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The matrix output on the far left is correct&lt;BR /&gt;2. The table output in the middle via a DAX filter does not work ([Latest Month], [Date Checker]) Code can be found in PowerBI file&lt;BR /&gt;3. The table output on the right (manual filter) works perfectly.&lt;/P&gt;&lt;P&gt;I'm not sure where the formula is breaking.I believe it is somewhere along the lines because of the relationship between the two tables in PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I need to furnish more details.Please find the links to the excel base data and Power BI File that may assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel - &lt;A href="https://www.dropbox.com/s/ifqq493hvw781ub/Test.pbix?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/ifqq493hvw781ub/Test.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;PowerBI - &lt;A href="https://www.dropbox.com/s/8cmm6vpbpxwh0bo/Test.xlsx?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/8cmm6vpbpxwh0bo/Test.xlsx?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371021#M24981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T07:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371121#M24984</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Not checked your file. But you can have measure like ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _max = maxx(allselected(Date), Date[Date])&lt;BR /&gt;return &lt;BR /&gt;calculate([Value measure], filter(Date,Date[Date]= _max))&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:11:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371121#M24984</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-15T08:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371213#M24989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slightly confused on the [Value measure] syntax - is that self-referencing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do it this way to get my latest month to run a filter but it does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Month = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR CurrentYearMonth =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return IF(max('tertiary vw_insights_ageing_profile'[Date Link]) = CurrentYearMonth,1,0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:28:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371213#M24989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371344#M24993</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;measure =&lt;/P&gt;
&lt;P&gt;VAR CurrentYearMonth = MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link])&lt;BR /&gt;Return&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; IF(format(max('tertiary vw_insights_ageing_profile'[Date Link]),"YYYYMM") = format(CurrentYearMonth,"YYYYMM"),1,0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use today() in place of MAXX(ALLSELECTED('tertiary vw_insights_ageing_profile'),'tertiary vw_insights_ageing_profile'[Date Link]) , if needed&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 09:16:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1371344#M24993</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-15T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: MAX Date filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1372192#M25022</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've written it exactly as you typed and it is unfortuantely still not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps the attached PBI file might be of some use ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:46:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MAX-Date-filter/m-p/1372192#M25022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T13:46:37Z</dc:date>
    </item>
  </channel>
</rss>

