<?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: timestamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/timestamps/m-p/967326#M468620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Absolutely beautiful. Thanks a lot for this.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I wish I was able to open your attachment, but as I have personal edition so I can’t.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I’ve used expression which works fine. As advised I replaced STDs with ID number which is unique number for each flight.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;To get clear picture what expression does I wanted to ask, what does this bit of expression mean:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;TOTAL&amp;lt;STD&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In my case I replaced it with ID number, does it describe search area of &lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;LAST_UPDATED &lt;/SPAN&gt;&lt;/EM&gt;within one flight?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Once again thanks a lot,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Lauris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 22:18:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-27T22:18:26Z</dc:date>
    <item>
      <title>timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps/m-p/967324#M468618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;would appreciate your advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate how long before flight departure time airport confirmes parking stand number for plane.&lt;/P&gt;&lt;P&gt;Every flight has unique id number which contains lots of timestamps and other data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On most of occasions airport plans stands for arriving plane in avdance and then before plane lands, stand gets confirmed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 stands for unconfirmed stand number,&lt;/P&gt;&lt;P&gt;1 stands for confirmed stand number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 311px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="text-align: center;" width="92"&gt;&lt;SPAN style="font-size: 8pt;"&gt;STD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="text-align: center;" width="70"&gt;&lt;SPAN style="font-size: 8pt;"&gt;LAST_UPDATED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="text-align: center;" width="89"&gt;&lt;SPAN style="font-size: 8pt;"&gt;CONFIRMED_STAND&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="text-align: center;" width="60"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ONSTAND&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3:13:52&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:23:42&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:24:23&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:38:42&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:38:55&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:50:22&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6:58:31&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:04:54&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:06:23&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:17:50&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:21:23&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:26:04&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:28:23&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:25:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:58:11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So in this example&amp;nbsp; everything is straight forward:&lt;/P&gt;&lt;P&gt;scheduled departure time is 7:25:00,&lt;/P&gt;&lt;P&gt;stand number gets changed few times before it is confirmed,&lt;/P&gt;&lt;P&gt;stand 4 gets confirmed at 6:38:55,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I calculate time when stand gets confirmed as follows:&lt;/P&gt;&lt;P&gt;STD - min({$&amp;lt;CONFIRMED_STAND = {"1"}&amp;gt;} LAST_UPDATED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem appears when on some occasions stand number gets confirmed then unconfirmed, then confirmed again:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 443px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="text-align: center;" width="124"&gt;&lt;SPAN style="font-size: 8pt;"&gt;STD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: center;" width="138"&gt;&lt;SPAN style="font-size: 8pt;"&gt;LAST_UPDATED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: center;" width="121"&gt;&lt;SPAN style="font-size: 8pt;"&gt;CONFIRMED_STAND&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left-style: none; text-align: center;" width="60"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ONSTAND&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:10:35&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:11:29&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:11:44&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:11:58&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:15:08&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:15:20&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;7:50:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8:28:55&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top-style: none; border-left-style: none; text-align: center;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;8&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can see that stand has been confirmed few times in given example, the truth is plane goes to stand which is confirmed as last in table, stand 8 gets confirmed at 08:15:20 which is 25min after departure time meaning that plane is arriving late.&lt;/P&gt;&lt;P&gt;My &lt;SPAN style="font-size: 13.3333330154419px;"&gt;STD - min({$&amp;lt;CONFIRMED_STAND = {"1"}&amp;gt;} LAST_UPDATED) does not work here as I don't want min value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The value I need is first timestamp which is greater than max timestamp when confirmed stand = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I calculate this in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Lauris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 20:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps/m-p/967324#M468618</guid>
      <dc:creator />
      <dc:date>2015-08-20T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps/m-p/967325#M468619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached a sample QVW with two approaches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) expression only:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Time(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Min( Aggr( if( LAST_UPDATED &amp;gt; Max(TOTAL&amp;lt;STD&amp;gt; {&amp;lt;CONFIRMED_STAND = {0}&amp;gt;} LAST_UPDATED), LAST_UPDATED), STD, LAST_UPDATED))&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;(here I've added STD as aggr() dimension to be able to distinguish between different flights, use flight number if available instead)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) script based:&lt;/P&gt;&lt;P&gt;You can flag the latest confirmed timestamp like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if(CONFIRMED_STAND = 0, Previous(LAST_UPDATED)) as Latest_Confirmed&lt;/P&gt;&lt;P&gt;RESIDENT INPUT&lt;/P&gt;&lt;P&gt;ORDER BY LAST_UPDATED desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then find the max confirmed timestamp using max. (with a bit more effort, you can do also this in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 21:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps/m-p/967325#M468619</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-20T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps/m-p/967326#M468620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Absolutely beautiful. Thanks a lot for this.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I wish I was able to open your attachment, but as I have personal edition so I can’t.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;I’ve used expression which works fine. As advised I replaced STDs with ID number which is unique number for each flight.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;To get clear picture what expression does I wanted to ask, what does this bit of expression mean:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;TOTAL&amp;lt;STD&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In my case I replaced it with ID number, does it describe search area of &lt;EM&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;LAST_UPDATED &lt;/SPAN&gt;&lt;/EM&gt;within one flight?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Once again thanks a lot,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Lauris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps/m-p/967326#M468620</guid>
      <dc:creator />
      <dc:date>2015-08-27T22:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps/m-p/967327#M468621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It tells QV to calculate MAX &lt;EM&gt;per STD&lt;/EM&gt; across all LAST_UPDATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a straight table chart with dimension STD and LAST_UPDATED and expression&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;Max(TOTAL&amp;lt;STD&amp;gt; {&amp;lt;CONFIRMED_STAND = {0}&amp;gt;} LAST_UPDATED), LAST_UPDATED)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;to see what I mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 22:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps/m-p/967327#M468621</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-27T22:27:31Z</dc:date>
    </item>
  </channel>
</rss>

