<?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: Calculation based on latest two dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492340#M68670</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341289" data-lia-user-login="Las" class="lia-mention lia-mention-user"&gt;Las&lt;/a&gt; , Measures &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max date = maxx(allselected(Table), Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd Max date = maxx(filter( allselected(Table),&amp;nbsp;Table[Date] &amp;lt; [Max Date]) , Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max date = maxx(all(Table), Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd Max date = maxx(filter( all(Table),&amp;nbsp;Table[Date] &amp;lt; [Max Date]) , Table[Date])&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 05:31:22 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-05-04T05:31:22Z</dc:date>
    <item>
      <title>Calculation based on latest two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492273#M68668</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date column which populates based on fortnightly basis ( Fortnightly is 14 days but I receive the data earlier ). My calculation should be based on Max(date) and the previous day that is available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Date received&lt;BR /&gt;15/04/2022&lt;BR /&gt;30/04/2022&lt;BR /&gt;12/05/2022&lt;BR /&gt;&lt;BR /&gt;From the above dates, how do i select 30/04/2022 and 12/05/2022 only? and for the next month also the logic should work&lt;BR /&gt;the same way like selecting 12/05/2022 and 30/05/2022 (Future date, which is currently not available) automatically.&lt;BR /&gt;&lt;BR /&gt;This might be an easy one but appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Las&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 04:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492273#M68668</guid>
      <dc:creator>Las</dc:creator>
      <dc:date>2022-05-04T04:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on latest two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492340#M68670</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341289" data-lia-user-login="Las" class="lia-mention lia-mention-user"&gt;Las&lt;/a&gt; , Measures &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max date = maxx(allselected(Table), Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd Max date = maxx(filter( allselected(Table),&amp;nbsp;Table[Date] &amp;lt; [Max Date]) , Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max date = maxx(all(Table), Table[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd Max date = maxx(filter( all(Table),&amp;nbsp;Table[Date] &amp;lt; [Max Date]) , Table[Date])&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 05:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492340#M68670</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-04T05:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on latest two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492363#M68672</link>
      <description>&lt;P&gt;Hi Amit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the prompt response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2nd Max date, would this pick up 30/04 or 15/04?&amp;nbsp;&amp;nbsp;Table[Date] &amp;lt; [Max Date] will search for the lowest and compared with the max date?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 05:43:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492363#M68672</guid>
      <dc:creator>Las</dc:creator>
      <dc:date>2022-05-04T05:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on latest two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492405#M68673</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341289" data-lia-user-login="Las" class="lia-mention lia-mention-user"&gt;Las&lt;/a&gt; , refer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492405#M68673</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-04T06:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on latest two dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492409#M68674</link>
      <description>&lt;P&gt;Thank you. All good.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:09:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-based-on-latest-two-dates/m-p/2492409#M68674</guid>
      <dc:creator>Las</dc:creator>
      <dc:date>2022-05-04T06:09:24Z</dc:date>
    </item>
  </channel>
</rss>

