<?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 Lastdate -1 filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848826#M91231</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to calculate measures with LASTDATE -1, -2, -3 etc (or maxstring) filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My basic code seems to be working:&lt;/P&gt;&lt;P&gt;=CALCULATE(Min('CEN'[Price]);LASTDATE(CEN[Data]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried like this but no effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=CALCULATE(Min('Ceneo'[Price]);LASTDATE(Ceneo[Data]-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 10:17:11 GMT</pubDate>
    <dc:creator>harry6810</dc:creator>
    <dc:date>2022-10-18T10:17:11Z</dc:date>
    <item>
      <title>Lastdate -1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848826#M91231</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to calculate measures with LASTDATE -1, -2, -3 etc (or maxstring) filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My basic code seems to be working:&lt;/P&gt;&lt;P&gt;=CALCULATE(Min('CEN'[Price]);LASTDATE(CEN[Data]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried like this but no effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=CALCULATE(Min('Ceneo'[Price]);LASTDATE(Ceneo[Data]-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 10:17:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848826#M91231</guid>
      <dc:creator>harry6810</dc:creator>
      <dc:date>2022-10-18T10:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lastdate -1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848861#M91233</link>
      <description>&lt;LI-CODE lang="markup"&gt;Day before =
VAR MaxDate =
    MAX ( Ceneo[Date] )
RETURN
    CALCULATE ( MIN ( Ceneo[Price] ), Ceneo[Date] = MaxDate - 1 )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 10:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848861#M91233</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-18T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lastdate -1 filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848881#M91235</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;!!!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 10:50:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastdate-1-filter/m-p/2848881#M91235</guid>
      <dc:creator>harry6810</dc:creator>
      <dc:date>2022-10-18T10:50:28Z</dc:date>
    </item>
  </channel>
</rss>

