<?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: Max (and Min) Timestamp in script per dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014600#M344012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are almost there. In order to calculate MAX per Trainrun ID, you need to add a GROUP BY clause, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Max_Timestamp_Arrival_Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Load&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(ATD) as Min_Timestamp_Departure,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(ATA) as Max_Timestamp_Arrival&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;Resident &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EBIS_TRSB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-style: inherit; font-size: 13.3333px; font-family: 'Century Gothic', sans-serif; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;You can learn more about QlikView scripting syntax and practice advance techniques using my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Take your Qlik Skills to the next level at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - now with new and redesigned materials!&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Jan 2016 16:58:55 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2016-01-02T16:58:55Z</dc:date>
    <item>
      <title>Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014598#M344010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview developing and I am turning to you for some help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Operational Train data with departure and arrival stations, departure and arrival times. Key Field: TRAINRUN_ID.&lt;/P&gt;&lt;P&gt;There can be multiple lines in a table like underneath. (using a simple table object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="354"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="118"&gt;TRAINRUN_ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="118"&gt;ATD&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="118"&gt;ATA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;01-06-2015 22:51&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 00:08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 02:40&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 13:23&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 18:19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 18:49&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 22:28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;03-06-2015 00:58&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;02-06-2015 10:52&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I need is the maximum arrival timestamp of the trainrun.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="474"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="118"&gt;TRAINRUN_ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="118"&gt;ATD&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="118"&gt;ATA&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="120"&gt;Max_ATA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;01-06-2015 22:51&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 00:08&lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 02:40&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 13:23&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 18:19&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 18:49&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 22:28&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 00:58&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;02-06-2015 10:52&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Optimizing the data load (these extra fields are of course unnecessary) I can do as a second step, meaning to keep just one line with the start and the end time :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 474px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="118"&gt;TRAINRUN_ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none;" width="118"&gt;ATD&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none;" width="118"&gt;Max_ATA&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top-style: none;"&gt;12149872&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none;"&gt;01-06-2015 22:51&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none;"&gt;03-06-2015 06:30&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The script I was trying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;EBIS_TRSB:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;LOAD TRAINRUN_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(TIME_START_REAL,'DD-MM-YYYY hh:mm') as ATD,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(TIME_END_REAL,'DD-MM-YYYY hh:mm') as ATA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATASET..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Max_Timestamp_Arrival_Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Load&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(ATA) as Max_Timestamp_Arrival&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident EBIS_TRSB;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Here I get an error message because of the Max function not working here. I tried to find the problem with this and tried some solutions given in discussions here, but couldn't make it work, would be great if someone could help! &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;(Maybe it would be best to use a minimum and maximum timestamp, I don't know).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 11:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014598#M344010</guid>
      <dc:creator />
      <dc:date>2016-01-02T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014599#M344011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add a Group By clause to you final load, see&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; bold red&lt;/STRONG&gt;&lt;/SPAN&gt; below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;[I have fiddled with your timestamps as well so they display properly]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;DATASET:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD TRAINRUN_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ATD,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ATA&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="198151" data-objecttype="1" href="https://community.qlik.com/thread/198151"&gt;https://community.qlik.com/thread/198151&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;EBIS_TRSB:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;LOAD TRAINRUN_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#(ATD,'DD-MM-YYYY hh:mm')) as ATD,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(timestamp#(ATA,'DD-MM-YYYY hh:mm')) as ATA&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATASET&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;drop table DATASET;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Max_Timestamp_Arrival_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Load&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(Max(ATA)) as Max_Timestamp_Arrival&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident EBIS_TRSB&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group By TRAINRUN_ID&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 16:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014599#M344011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-02T16:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014600#M344012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are almost there. In order to calculate MAX per Trainrun ID, you need to add a GROUP BY clause, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Max_Timestamp_Arrival_Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;Load&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(ATD) as Min_Timestamp_Departure,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Century Gothic', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(ATA) as Max_Timestamp_Arrival&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;Resident &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EBIS_TRSB&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;GROUP BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-style: inherit; font-size: 13.3333px; font-family: 'Century Gothic', sans-serif; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRAINRUN_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;You can learn more about QlikView scripting syntax and practice advance techniques using my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Take your Qlik Skills to the next level at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - now with new and redesigned materials!&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;&lt;SPAN style="font-family: 'Century Gothic', sans-serif; font-size: 10pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 16:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014600#M344012</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-01-02T16:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014601#M344013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110426_1.png" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATASET:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TRAINRUN_ID, ATD, ATA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, 01-06-2015 22:51, 02-06-2015 00:08&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, 02-06-2015 02:40,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, 02-06-2015 13:23, 02-06-2015 18:19&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, 02-06-2015 18:49, 02-06-2015 22:28&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, 03-06-2015 00:58, 03-06-2015 06:30&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12149872, , 02-06-2015 10:52&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Max_Timestamp_Arrival_Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD TRAINRUN_ID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(min(timestamp#(ATD,'DD-MM-YYYY hh:mm'))) as MinATD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp(max(timestamp#(ATA,'DD-MM-YYYY hh:mm'))) as MaxATA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident DATASET&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By TRAINRUN_ID;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table DATASET;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 18:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014601#M344013</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-02T18:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014602#M344014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Bill: This is what I asked for thanks it works, I kept the timestamps as I had them though, still worked well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Oleg: Very good add of the minimum, I can use this as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Maxgro: similar input to Oleg his script, also works thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jan 2016 07:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014602#M344014</guid>
      <dc:creator />
      <dc:date>2016-01-03T07:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max (and Min) Timestamp in script per dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014603#M344015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help regards to same logic of hour calculation.&lt;/P&gt;&lt;P&gt;Need your help to figure out the possible solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are tow time columns (Uptime and Downtime of any event/alarm) and we need to achieve like :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-font-family: Cambria; mso-ansi-language: EN-US; mso-fareast-language: ZH-HK; mso-bidi-language: HE;"&gt;&lt;SPAN style="color: #000000;"&gt;An event will pass a time filter if &lt;STRONG&gt;for any time duration,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; the event&amp;nbsp; was active within the time defined by the time filter.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-font-family: Cambria; mso-ansi-language: EN-US; mso-fareast-language: ZH-HK; mso-bidi-language: HE;"&gt;For example-&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-font-family: Cambria; mso-ansi-language: EN-US; mso-fareast-language: ZH-HK; mso-bidi-language: HE;"&gt;Table structure like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px black; border-image: none;" width="82"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;DATE&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="99"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ALARMUPTIME&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="120"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ALARMDOWNIME&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border: 0px black; border-image: none;" width="64"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;ALARMID&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/3/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/3/2017 17:15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/4/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/3/2017 17:15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/5/2017&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/3/2017 17:15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;3/5/2017 16:47&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" style="border: 0px black; border-image: none;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Alarmid=1 has uptime of&amp;nbsp; 3/3/2017 17:15 AND finished on downtime of =3/5/2017 16:47.&lt;/P&gt;&lt;P&gt;So it remain active till 3/5/2017 16:47.&lt;/P&gt;&lt;P&gt;So if below are filter selections then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Exmaple 1 ) Date filter: &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;3/3/2017, 5/3/2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;&lt;STRONG&gt;Hour Filter: 16:00&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;Alarm Up time: 3/3/2017 17:15:06&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;Alarm Down time: 5/3/2017 15:47:13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;Calculation-&amp;gt;Fails&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt; the time filter (Events not vsisble)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Exmaple 2 ) Date filter: &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;3/3/2017, 3/4/2017, 5/3/2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;&lt;STRONG&gt;Hour Filter: 16:00&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;Alarm Up time: 3/3/2017 17:15:06&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;Alarm Down time: 5/3/2017 15:47:13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;Calculation&lt;/STRONG&gt;&lt;/SPAN&gt; -&amp;gt;Pass &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; mso-fareast-language: ZH-HK;"&gt;the time filter.(Events will be visible)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: #000000; font-family: 'Arial','sans-serif'; font-size: 12pt; mso-fareast-language: ZH-HK;"&gt;Can you please advise how can I achive something like above to pass/fail&amp;nbsp; the hour filter?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-and-Min-Timestamp-in-script-per-dimension/m-p/1014603#M344015</guid>
      <dc:creator>aj0031724</dc:creator>
      <dc:date>2017-03-24T12:06:05Z</dc:date>
    </item>
  </channel>
</rss>

