<?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 obtain the max value for several rows with the same id  with condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188861#M51119</link>
    <description>&lt;P&gt;Thank You Kim... It is working fine.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Nov 2021 14:34:52 GMT</pubDate>
    <dc:creator>SivaSatya</dc:creator>
    <dc:date>2021-11-14T14:34:52Z</dc:date>
    <item>
      <title>How to obtain the max value for several rows with the same id  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2185358#M50947</link>
      <description>&lt;P&gt;Hello, I need to calculate in a new colum/new measure the max date for the same id within a table and also check if it is less than today. if yes, that value/date to be taken else check the next max date and check if is less than today and so on....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 13:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2185358#M50947</guid>
      <dc:creator>SivaSatya</dc:creator>
      <dc:date>2021-11-11T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the max value for several rows with the same id  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2185557#M50958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&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;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;New Table = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;VAR newtable_onorbeforetoday =&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;FILTER ( Data, Data[Date] &amp;lt;= TODAY () )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;VAR groupbytable =&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;GROUPBY (&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;newtable_onorbeforetoday,&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;Data[ID],&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;"@maxdate", MAXX ( CURRENTGROUP (), Data[Date] )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt; )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;CALCULATETABLE ( Data, TREATAS ( groupbytable, Data[ID], Data[Date] ) )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2185557#M50958</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-11-11T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the max value for several rows with the same id  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188775#M51113</link>
      <description>&lt;P&gt;Thank You Kim... New Table is working fine.. Is it possible through new coumn/measure to get this in report?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 09:06:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188775#M51113</guid>
      <dc:creator>SivaSatya</dc:creator>
      <dc:date>2021-11-14T09:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the max value for several rows with the same id  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188836#M51115</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Weight Measure = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;VAR currentID =&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;MAX ( Data[ID] )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;VAR newtable_onorbeforetoday =&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;FILTER ( ALL ( Data ), Data[Date] &amp;lt;= TODAY () &amp;amp;&amp;amp; Data[ID] = currentID )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;VAR groupbytable =&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;GROUPBY (&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;newtable_onorbeforetoday,&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;Data[ID],&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;"@maxdate", MAXX ( CURRENTGROUP (), Data[Date] )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt; )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;HASONEVALUE ( Data[ID] ),&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;CALCULATE (&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;MAX ( Data[Weight] ),&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;KEEPFILTERS ( TREATAS ( groupbytable, Data[ID], Data[Date] ) )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt; )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt; )&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 14 Nov 2021 12:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188836#M51115</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-11-14T12:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain the max value for several rows with the same id  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188861#M51119</link>
      <description>&lt;P&gt;Thank You Kim... It is working fine.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 14:34:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-obtain-the-max-value-for-several-rows-with-the-same-id/m-p/2188861#M51119</guid>
      <dc:creator>SivaSatya</dc:creator>
      <dc:date>2021-11-14T14:34:52Z</dc:date>
    </item>
  </channel>
</rss>

