<?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: How to get as per the latest datetime ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814300#M38366</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48399" data-lia-user-login="mohittimpus" class="lia-mention lia-mention-user"&gt;mohittimpus&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _max = Maxx( ALL ( table ), table[DateTime] ) //OR //Maxx( ALLSelected ( table ), table[DateTime] )&lt;/P&gt;
&lt;P&gt;return &lt;BR /&gt;CALCULATE (&lt;BR /&gt;AVERAGE ( table[values] ),&lt;BR /&gt;FILTER ( ALL ( table ), table[DateTime] =_max )&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 29 Apr 2021 13:47:44 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-29T13:47:44Z</dc:date>
    <item>
      <title>How to get as per the latest datetime ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814248#M38365</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to get a value from table which has a recent datetime.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm trying this logic but its not working :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="Keyword"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;table[values]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;FILTER&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;ALL&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;table&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;table[DateTime]&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;table[DateTime]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Apr 2021 13:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814248#M38365</guid>
      <dc:creator>mohittimpus</dc:creator>
      <dc:date>2021-04-29T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get as per the latest datetime ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814300#M38366</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48399" data-lia-user-login="mohittimpus" class="lia-mention lia-mention-user"&gt;mohittimpus&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _max = Maxx( ALL ( table ), table[DateTime] ) //OR //Maxx( ALLSelected ( table ), table[DateTime] )&lt;/P&gt;
&lt;P&gt;return &lt;BR /&gt;CALCULATE (&lt;BR /&gt;AVERAGE ( table[values] ),&lt;BR /&gt;FILTER ( ALL ( table ), table[DateTime] =_max )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 13:47:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814300#M38366</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-29T13:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get as per the latest datetime ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814310#M38367</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="48399" data-lia-user-login="mohittimpus" class="lia-mention lia-mention-user"&gt;mohittimpus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if I wrongly understood your question.&lt;/P&gt;&lt;P&gt;Please check the below picture and the measure, whether it is what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Last sales total = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;LASTNONBLANKVALUE( 'Table'[Date], [Sales total])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;The link is down below.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://www.dropbox.com/s/0mu4bdb2vbim8cl/mohittimpus.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/0mu4bdb2vbim8cl/mohittimpus.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 13:53:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1814310#M38367</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-29T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get as per the latest datetime ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1815333#M38399</link>
      <description>&lt;LI-CODE lang="markup"&gt;Measure =
VAR __time = MAX( table[DateTime] )
RETURN
    CALCULATE( AVERAGE( table[values] ), table[DateTime] &amp;gt;= __time )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Apr 2021 23:48:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-as-per-the-latest-datetime/m-p/1815333#M38399</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2021-04-29T23:48:16Z</dc:date>
    </item>
  </channel>
</rss>

