<?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: DAX ,Find Max in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1948797#M42445</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312423" data-lia-user-login="Nikhil_D" class="lia-mention lia-mention-user"&gt;Nikhil_D&lt;/a&gt; , You need to add an index column in power query &lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi" target="_blank"&gt;https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then try Dax formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output = var _1 = maxx(filter(Table, [pid] = earlier([pid])), [second])&lt;BR /&gt;return &lt;BR /&gt;if([index] = maxx(filter(Table, [pid] = earlier([pid]) &amp;amp;&amp;amp; [second] =_1), [index]) , [second], blank())&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 17:37:57 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-07-09T17:37:57Z</dc:date>
    <item>
      <title>DAX ,Find Max</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1947733#M42400</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! &amp;nbsp;I have a problem and have a feeling a simple DAX formula can solve it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like the 'Output' column to be created with 'Seconds' column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For PID&lt;U&gt; &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/U&gt; , Seconds are repeated and I need Only one entry in "Output" Column and for PID &lt;U&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/U&gt;,&amp;nbsp;I need only Max Seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1947733#M42400</guid>
      <dc:creator>Nikhil_D</dc:creator>
      <dc:date>2021-07-09T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ,Find Max</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1948797#M42445</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312423" data-lia-user-login="Nikhil_D" class="lia-mention lia-mention-user"&gt;Nikhil_D&lt;/a&gt; , You need to add an index column in power query &lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi" target="_blank"&gt;https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then try Dax formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output = var _1 = maxx(filter(Table, [pid] = earlier([pid])), [second])&lt;BR /&gt;return &lt;BR /&gt;if([index] = maxx(filter(Table, [pid] = earlier([pid]) &amp;amp;&amp;amp; [second] =_1), [index]) , [second], blank())&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:37:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1948797#M42445</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-07-09T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX ,Find Max</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1948903#M42455</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;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&amp;nbsp;I followed u r steps but didn't get solution.&lt;/P&gt;&lt;P&gt;I think I have not explained clearly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So let me tell u clearly.&lt;/P&gt;&lt;P&gt;I have tabel as below mentioned and I need "Output" Column.&lt;/P&gt;&lt;P&gt;PID Column have Duplicates and I can not remove those duplicates. I need those for another purpose.&lt;/P&gt;&lt;P&gt;What I need is Calcute P_Second based on PID.&lt;/P&gt;&lt;P&gt;If P_Seconds are Unique for PID, I need only one entry in 'Output' column.&lt;/P&gt;&lt;P&gt;If it is not Unique and I need Max Secons in 'output' column.&lt;/P&gt;&lt;P&gt;if PID is Null, I need it Null only.&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;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 18:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Find-Max/m-p/1948903#M42455</guid>
      <dc:creator>Nikhil_D</dc:creator>
      <dc:date>2021-07-09T18:53:18Z</dc:date>
    </item>
  </channel>
</rss>

