<?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 Get the max value per date based in serial in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-max-value-per-date-based-in-serial/m-p/2496834#M68921</link>
    <description>&lt;P&gt;I have 3 fields Serial, Date and Temp.&amp;nbsp; The date field is actually a date time field I converted to just a date.&amp;nbsp; I am trying to get the max Temp per date for each serial number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past I have done this to get the max date of each serial and filter on only the columns with 1.&lt;/P&gt;&lt;P&gt;Max Date = IF('Export'[datetime]=CALCULATE(MAX('Export'[datetime]),ALLEXCEPT('Export','Export'[serialnumber])),1,0)&lt;/P&gt;&lt;P&gt;The complexity here is adding the Temp.&amp;nbsp; I need to flag each row somehow that this is the max temp for that serial on that day.&lt;/P&gt;&lt;P&gt;Here is a sample of what I am trying to do.&amp;nbsp; I dont necessarly need a max temp column with 1,0 but that how I was able to do it before.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 18:13:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-05T18:13:22Z</dc:date>
    <item>
      <title>Get the max value per date based in serial</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-max-value-per-date-based-in-serial/m-p/2496834#M68921</link>
      <description>&lt;P&gt;I have 3 fields Serial, Date and Temp.&amp;nbsp; The date field is actually a date time field I converted to just a date.&amp;nbsp; I am trying to get the max Temp per date for each serial number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past I have done this to get the max date of each serial and filter on only the columns with 1.&lt;/P&gt;&lt;P&gt;Max Date = IF('Export'[datetime]=CALCULATE(MAX('Export'[datetime]),ALLEXCEPT('Export','Export'[serialnumber])),1,0)&lt;/P&gt;&lt;P&gt;The complexity here is adding the Temp.&amp;nbsp; I need to flag each row somehow that this is the max temp for that serial on that day.&lt;/P&gt;&lt;P&gt;Here is a sample of what I am trying to do.&amp;nbsp; I dont necessarly need a max temp column with 1,0 but that how I was able to do it before.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 18:13:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-max-value-per-date-based-in-serial/m-p/2496834#M68921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get the max value per date based in serial</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-max-value-per-date-based-in-serial/m-p/2497221#M68936</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([Temp] = maxx(filter(Table, [serial] = earlier([Serial]) &amp;amp;&amp;amp; [Date] = earlier([Date]) ) ,[Temp]) ,1,0 )&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 01:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-max-value-per-date-based-in-serial/m-p/2497221#M68936</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-06T01:22:52Z</dc:date>
    </item>
  </channel>
</rss>

