<?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 evaluating time stamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155218#M31545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Time('0:05:55', 'hh:mm:ss')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Should work as you expect.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 23:03:42 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-10T23:03:42Z</dc:date>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155215#M31542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;my input file has a time stamp field in the format : '0:05:55', '2:15:33', '22:14:55' etc.&lt;/P&gt;&lt;P&gt;I am creating groupings based on these time stamps, by doing an If statement like this:&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(time &amp;gt;= '00:00:00' and time &amp;lt;= '06:00:00' ,'Overnight' ,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;if (time &amp;gt; '06:00:00' and time &amp;lt;= '09:00:00' ,'Early Morning'&lt;/P&gt;&lt;P&gt;This IF statement works for all time stamps that have a 2 digit format for the hour, but not for time stamps with only 1 digit for the hour ( ex: 2:15:33 instead of 02:15:33). I changed the format in the If statement to &amp;gt;=0:00:00 and &amp;lt;=6:00:00, but that produced totally wrong results.&lt;/P&gt;&lt;P&gt;Do I need to left pad with 0 those records in order to make this work or is there a better solution to this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 21:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155215#M31542</guid>
      <dc:creator />
      <dc:date>2011-03-10T21:01:35Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155216#M31543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change your timestamp to a time format while loading, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time#(time,'hh:mm:ss') as Timestamp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 22:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155216#M31543</guid>
      <dc:creator />
      <dc:date>2011-03-10T22:10:45Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155217#M31544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I thought that would work for sure, but No - the format is still the same, no zero in front.&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 22:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155217#M31544</guid>
      <dc:creator />
      <dc:date>2011-03-10T22:48:59Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155218#M31545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Time('0:05:55', 'hh:mm:ss')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Should work as you expect.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 23:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155218#M31545</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-10T23:03:42Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155219#M31546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel, that worked!&lt;/P&gt;&lt;P&gt;What exactly is the difference between all the functions with the #sign and the same functions without it?&lt;/P&gt;&lt;P&gt;I read thru the Help Guide and looked at the examples, but I still don't clearly understand the difference.&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 23:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155219#M31546</guid>
      <dc:creator />
      <dc:date>2011-03-10T23:59:22Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155220#M31547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;Functions with # convert a non-numeric value to a value interpretable by QlikView (usually, numeric).&lt;/P&gt;&lt;P&gt;For example, any date value in QlikView is a numeric (integer or decimal) value, representing days (if decimal, then days and hours-fractions of days).&lt;/P&gt;&lt;P&gt;Say my default configuration is for representing these numeric values to 'DD/MM/YYYY' (as set at the beginning of the script, stored in the variable "DateFormat" that usually follows the regional settings of your operating system) but I get 'D.MMM.YY' which is not numeric nor interpretable as such, therefore a literal (string).&lt;/P&gt;&lt;P&gt;I likely need first to "convert" (&lt;I&gt;evaluate&lt;/I&gt;) the second value into a numeric date value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date#('3.jan.11', 'D.MMM.YY')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Internally, although displayed as a string of characters, this value is now &lt;I&gt;interpreted&lt;/I&gt; as numeric:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Num(Date#('3.jan.11', 'D.MMM.YY'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But instead of a plain number, I want tell QlikView to &lt;I&gt;represent&lt;/I&gt; this number as a date so it can be used in date functions and aggregations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Date(Date#('3.jan.11', 'D.MMM.YY'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It's not what you see, rather that how QlikView interprets these values. And QlikView always interpret any value as either numeric or literal (string).&lt;/P&gt;&lt;P&gt;My view, in short, is that # functions tell how to &lt;I&gt;interpret&lt;/I&gt; the value. Non # functions say how to &lt;I&gt;represent&lt;/I&gt; the value.&lt;/P&gt;&lt;P&gt;Hope this makes some sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 00:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155220#M31547</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-11T00:40:43Z</dc:date>
    </item>
    <item>
      <title>evaluating time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155221#M31548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;thank you very much for the explanation. It is very helpful.&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 16:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/evaluating-time-stamp/m-p/155221#M31548</guid>
      <dc:creator />
      <dc:date>2011-03-25T16:12:36Z</dc:date>
    </item>
  </channel>
</rss>

