<?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: Times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Times/m-p/586465#M1100021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thats great thank you.. It works but so I have an understanding of why could you briefly comment on what some of the formulae does specifically the two bits underlined...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG style="text-decoration: underline;"&gt;*,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Variation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;maketime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0,1) ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;dual&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Yes',1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;dual&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('No',0)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;OneMinuteOrGreater&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;LOAD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActFrequency&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Scheduled Frequency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Variation&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Stop&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Destination&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Scheduled Frequency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Stop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Stop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Destination&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Destination&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;interval&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;ActFrequency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;&lt;BR /&gt;(&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 10:49:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-17T10:49:37Z</dc:date>
    <item>
      <title>Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586463#M1100018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of times for a journey and I want to calculate the frequency between stops A &amp;amp; B between Town and City along wit a few assocaited summary totals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spreadsheet attached shows the data on the left hand sidei n Blue (columns A to D)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I need is shown n the same spreadsheet on the RHs in yellow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586463#M1100018</guid>
      <dc:creator />
      <dc:date>2014-04-16T14:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586464#M1100019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prepare the actual frequency and deviation in your script, then getting the tables with the statistics is straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to order your input table by Stop, Destination and ArrivalTime to get the peek() calculations right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586464#M1100019</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-16T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586465#M1100021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thats great thank you.. It works but so I have an understanding of why could you briefly comment on what some of the formulae does specifically the two bits underlined...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;STRONG style="text-decoration: underline;"&gt;*,&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Variation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;maketime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(0,1) ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;dual&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Yes',1),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;dual&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('No',0)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;OneMinuteOrGreater&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;LOAD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActFrequency&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Scheduled Frequency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Variation&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Stop&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Destination&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Scheduled Frequency]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Stop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Stop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;and&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Destination&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;Destination&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;interval&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;peek&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;ArrivalTime&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: underline;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;ActFrequency&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;&lt;BR /&gt;(&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 10:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586465#M1100021</guid>
      <dc:creator />
      <dc:date>2014-04-17T10:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586466#M1100023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In hindsight I think i need to order I think I&amp;nbsp; need to order my input input table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586466#M1100023</guid>
      <dc:creator />
      <dc:date>2014-04-17T11:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586467#M1100024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script just looks at the previous time in the load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source data isnt actually in Stop order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get the script to look at the previous time for the specific stop from and stop to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 15:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586467#M1100024</guid>
      <dc:creator />
      <dc:date>2014-04-17T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Times</title>
      <link>https://community.qlik.com/t5/QlikView/Times/m-p/586468#M1100025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe start with these three blog posts from Henric, should answer most of you questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/09/16/counters-in-the-load" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/09/16/counters-in-the-load"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/09/16/counters-in-the-load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/08/peek-vs-previous-when-to-use-each&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look at the &lt;EM&gt;order by &lt;/EM&gt;clause in the HELP or reference manual. You can use the order by when loading e.g. from a resident table or a DB source, so if your data is not properly sorted, you may first load it as is, then use my LOAD using a RESIDENT LOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD Stop, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Destination, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrivalTime, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Scheduled Frequency]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[HeadwayExample.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Variation &amp;gt;= maketime(0,1) ,dual('Yes',1),dual('No',0)) as OneMinuteOrGreater;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; interval(ActFrequency - [Scheduled Frequency]) as Variation;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(peek(Stop)=Stop and peek(Destination)=Destination,interval( ArrivalTime-peek(ArrivalTime))) as ActFrequency&lt;/P&gt;&lt;P&gt;Resident INPUT order by Stop, Destination, ArrivalTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table INPUT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Times/m-p/586468#M1100025</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-04-17T17:41:06Z</dc:date>
    </item>
  </channel>
</rss>

