<?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: DateTime based on lowest SeqID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831984#M659548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VisitID,SeqID,EventID,EventName,HistoryFunction,Comment,DateTime&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM livedb.dbo.EdmPatientStatusEventHistory&lt;/P&gt;&lt;P&gt;WHERE EventID = 'IN ROOM'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;VisitID&amp;amp;'-'&amp;amp;SeqID as Key&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VisitID,&lt;/P&gt;&lt;P&gt;min(SeqID) as SeqID&lt;/P&gt;&lt;P&gt;resident Data&lt;/P&gt;&lt;P&gt;group by VisitID&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data3:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(exists(Key,VisitID&amp;amp;'-'&amp;amp;SeqID),DateTime) as urdesireddate&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Data;&lt;/P&gt;&lt;P&gt;drop table Data2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 15:07:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-14T15:07:25Z</dc:date>
    <item>
      <title>DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831982#M659546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Good day, all.&amp;nbsp; I'm having a script challenge this morning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;NOTE:&amp;nbsp; Edited to include entire table.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My script looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;EdmPatientStatusEventHistory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;SourceID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VisitID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;SeqID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;EventID&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;EventName&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;HistoryFunction&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;HistoryUser&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;StartRW&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;RowUpdateDateTime&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;HistoryUserType&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Comment&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;StartDateTime&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;ActualFileDateTime&lt;/SPAN&gt;;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; SELECT *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; FROM livedb.dbo.EdmPatientStatusEventHistory; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;What I&lt;/SPAN&gt; need is for each VisitID, the DateTime associated with the lowest value in SeqID, only where EventID = 'IN ROOM'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas?&amp;nbsp; I'm sure this is a simple fix for those who are better at this than I am.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sam Chambers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831982#M659546</guid>
      <dc:creator />
      <dc:date>2015-04-14T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831983#M659547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;Try with this:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;MyTable:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;VisitID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;SeqID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;EventID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;EventName&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;HistoryFunction&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;Comment&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;DateTime&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT *&lt;BR /&gt; FROM livedb.dbo.EdmPatientStatusEventHistory&lt;BR /&gt; WHERE EventID = 'IN ROOM'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Left Join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load Min(DateTime) as Mini resident MyTable Group by V&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;isitID&lt;/SPAN&gt;, S&lt;SPAN style="color: #800000;"&gt;eqID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 15:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831983#M659547</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-04-14T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831984#M659548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VisitID,SeqID,EventID,EventName,HistoryFunction,Comment,DateTime&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM livedb.dbo.EdmPatientStatusEventHistory&lt;/P&gt;&lt;P&gt;WHERE EventID = 'IN ROOM'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;VisitID&amp;amp;'-'&amp;amp;SeqID as Key&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VisitID,&lt;/P&gt;&lt;P&gt;min(SeqID) as SeqID&lt;/P&gt;&lt;P&gt;resident Data&lt;/P&gt;&lt;P&gt;group by VisitID&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data3:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(exists(Key,VisitID&amp;amp;'-'&amp;amp;SeqID),DateTime) as urdesireddate&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Data;&lt;/P&gt;&lt;P&gt;drop table Data2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 15:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831984#M659548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T15:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831985#M659549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Alessandro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running your script with a limited load of 10,000 lines, each VisitID has thousands of values for 'Mini', rather than just one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to update my original post to include the entire table.&amp;nbsp; Maybe that will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 16:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831985#M659549</guid>
      <dc:creator />
      <dc:date>2015-04-14T16:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831986#M659550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Alessandro code just had a typo, modified so it should work no&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;VisitID,&lt;/P&gt;&lt;P&gt;SeqID,&lt;/P&gt;&lt;P&gt;EventID,&lt;/P&gt;&lt;P&gt;EventName,&lt;/P&gt;&lt;P&gt;HistoryFunction,&lt;/P&gt;&lt;P&gt;Comment,&lt;/P&gt;&lt;P&gt;DateTime;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM livedb.dbo.EdmPatientStatusEventHistory&lt;/P&gt;&lt;P&gt;WHERE EventID = 'IN ROOM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load Min(DateTime) as DateTime,&lt;/P&gt;&lt;P&gt;'Yes' as Mini resident MyTable&lt;/P&gt;&lt;P&gt; Group by VisitID, SeqID;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 16:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831986#M659550</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-14T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831987#M659551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;EdmPatientStatusEventHistory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;SourceID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;VisitID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;SeqID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;EventID&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;EventName&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;HistoryFunction&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;HistoryUser&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;StartRW&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;RowUpdateDateTime&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;HistoryUserType&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;Comment&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;StartDateTime&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;ActualFileDateTime&lt;/SPAN&gt;;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt; SELECT *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;FROM livedb.dbo.EdmPatientStatusEventHistory;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;left join (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;EdmPatientStatusEventHistory)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;VisitID, StartDateTime as MinStartDateTime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // StartDateTime or DateTime or ....&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;EdmPatientStatusEventHistory&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;where EventID = 'IN ROOM'&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;and peek(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;VisitID&lt;/SPAN&gt;)&amp;lt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;VisitID&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;EM&gt;order by VisitID, SeqID&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 18:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831987#M659551</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-14T18:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime based on lowest SeqID</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831988#M659552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Massimo!&amp;nbsp; There's more testing to be done, but it appears to be working well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 18:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-based-on-lowest-SeqID/m-p/831988#M659552</guid>
      <dc:creator />
      <dc:date>2015-04-14T18:47:48Z</dc:date>
    </item>
  </channel>
</rss>

