<?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 Find lastest TIME of day in series of dates in DAX / M ? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392382#M11661</link>
    <description>&lt;P&gt;Assume a series of dates in this format.&amp;nbsp; Client wants to determine the latest time of day (i.e. 7:00 AM in this data) several processes finish to find the specific date of the latest process finish times per week, month, quarter and year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1/1/2001 6:00 AM&lt;/P&gt;&lt;P&gt;2/1/2002 7:00 AM&lt;/P&gt;&lt;P&gt;3/1/2003 4:45 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open to any options.&amp;nbsp;Thinking SQL might be easiest but does anyone know how to do this using just DAX / M.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 00:55:58 GMT</pubDate>
    <dc:creator>PbiConsult1</dc:creator>
    <dc:date>2018-04-12T00:55:58Z</dc:date>
    <item>
      <title>Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392382#M11661</link>
      <description>&lt;P&gt;Assume a series of dates in this format.&amp;nbsp; Client wants to determine the latest time of day (i.e. 7:00 AM in this data) several processes finish to find the specific date of the latest process finish times per week, month, quarter and year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1/1/2001 6:00 AM&lt;/P&gt;&lt;P&gt;2/1/2002 7:00 AM&lt;/P&gt;&lt;P&gt;3/1/2003 4:45 AM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open to any options.&amp;nbsp;Thinking SQL might be easiest but does anyone know how to do this using just DAX / M.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 00:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392382#M11661</guid>
      <dc:creator>PbiConsult1</dc:creator>
      <dc:date>2018-04-12T00:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392419#M11663</link>
      <description>&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Max Hour = 
VAR tmpTable1 = VALUES(ProcessFinish[ProcessFinish])
VAR tmpTable2 = ADDCOLUMNS(tmpTable1,"Hour",HOUR([ProcessFinish]))
RETURN MAXX(tmpTable2,[Hour])&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:12:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392419#M11663</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-04-09T13:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392421#M11664</link>
      <description>&lt;P&gt;Here's a better one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Max Time = 
VAR tmpTable1 = VALUES(ProcessFinish[ProcessFinish])
VAR tmpTable2 = ADDCOLUMNS(tmpTable1,"Hour",TIMEVALUE([ProcessFinish]))
RETURN FORMAT(MAXX(tmpTable2,[Hour]),"Medium Time")&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:14:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392421#M11664</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-04-09T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392464#M11670</link>
      <description>&lt;P&gt;Greg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will that give the actual calendate for the latest time of day each process finishes?&amp;nbsp; Think I see where it finds the time component, just not the date. Thanks for being so quick to reply.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392464#M11670</guid>
      <dc:creator>PbiConsult1</dc:creator>
      <dc:date>2018-04-09T13:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392476#M11672</link>
      <description>&lt;P&gt;Sorry, that was not clear from your original message. See if this one does the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dateTime with Max Time = 
VAR tmpTable1 = VALUES(ProcessFinish[ProcessFinish])
VAR tmpTable2 = ADDCOLUMNS(tmpTable1,"Time",FORMAT(TIMEVALUE([ProcessFinish]),"Medium Time"))
VAR maxTime = MAXX(tmpTable2,[Time])
RETURN CALCULATE(MAXX(FILTER(tmpTable2,[Time]=maxTime),[ProcessFinish]))&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392476#M11672</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-04-09T14:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392539#M11677</link>
      <description>&lt;P&gt;Greg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks will let you know but looks good on first glance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 15:05:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392539#M11677</guid>
      <dc:creator>PbiConsult1</dc:creator>
      <dc:date>2018-04-09T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392763#M11686</link>
      <description>&lt;P&gt;Played with it but the error "end of input was reached" pops with a yellow triangle. Sounds like it's done parsing and isn't putting the results in the right place or somehow there is a table or column issue being treated as scalar perhaps?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 01:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/392763#M11686</guid>
      <dc:creator>PbiConsult1</dc:creator>
      <dc:date>2018-04-10T01:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find lastest TIME of day in series of dates in DAX / M ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/394608#M11753</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sort6.png" style="width: 248px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/90623iA3B0AF0A524148D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sort6.png" alt="Sort6.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Runs!!! Hoo yah!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time is in 2 forms. 12am-12pm and Decimal. There were no visuals that could post time of day by hour on the Y axis so I had to convert to decimal time.&amp;nbsp; Those 22,23,21 all show up for each month which look remarkably similar to business day count per month.&amp;nbsp;&amp;nbsp;A table needs to show the &amp;nbsp;exact date&amp;nbsp;of the latest time of day finish&amp;nbsp;d for each week, month,quarter, and year and singled out both for the table and for the visual.&amp;nbsp; No matter what visual is used or where in a table or matrix this is displayed that exact same&amp;nbsp;column of 21,22,23 shows up the same for each different process finish.&amp;nbsp; Seems like it's close.&amp;nbsp; Thinking it's almost there but hoping you can help with that last stop. The idea is to be able to single out these values a little more so it would be something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProcessName&amp;nbsp;&amp;nbsp; Process finish&amp;nbsp; &amp;nbsp;Latest Hour &amp;amp; Date Forweek&amp;nbsp;&amp;nbsp;&amp;nbsp;Latest Hour &amp;amp; Date&amp;nbsp;ForMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Latest Hour &amp;amp; Date For Quarter&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&amp;nbsp; Your earlier post is very helpful Greg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 00:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Find-lastest-TIME-of-day-in-series-of-dates-in-DAX-M/m-p/394608#M11753</guid>
      <dc:creator>PbiConsult1</dc:creator>
      <dc:date>2018-04-12T00:50:10Z</dc:date>
    </item>
  </channel>
</rss>

