<?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 Time in QlikView, in num() format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225229#M77562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Could someone tell me how QV gets the number value used for the time?&lt;BR /&gt;It must be something like the time in seconds since 1970 or something??&lt;/P&gt;&lt;P&gt;E.g the value 40294.72818287&lt;/P&gt;&lt;P&gt;What i would like todo is count how many rows of data fall into specific time periods, e.g within the last 3 hours, last 6 hours etc etc.&lt;BR /&gt;That bit i'm ok with, but i want to be able to select values that are DateTime&amp;gt;= num(now())- 'the number value that is 3 hours e.g 0.006xxxx'&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Apr 2010 17:31:44 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2010-04-26T17:31:44Z</dc:date>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225229#M77562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Could someone tell me how QV gets the number value used for the time?&lt;BR /&gt;It must be something like the time in seconds since 1970 or something??&lt;/P&gt;&lt;P&gt;E.g the value 40294.72818287&lt;/P&gt;&lt;P&gt;What i would like todo is count how many rows of data fall into specific time periods, e.g within the last 3 hours, last 6 hours etc etc.&lt;BR /&gt;That bit i'm ok with, but i want to be able to select values that are DateTime&amp;gt;= num(now())- 'the number value that is 3 hours e.g 0.006xxxx'&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 17:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225229#M77562</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2010-04-26T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225230#M77563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;BR /&gt;The integer part is days, the fraction is time as part of the day. So, three hours back is now()-3/24, 6 hours back is now()-6/24&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 17:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225230#M77563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-26T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225231#M77564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;BR /&gt;&lt;BR /&gt;Thanks for the info, that makes much more sense now!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However i now need alittle help with this expression:&lt;BR /&gt;Count ({&amp;lt;MY_DateTimeStamp ={'&amp;gt;=$(now(2)-7)'}&amp;gt;}MY_ID)&lt;BR /&gt;&lt;BR /&gt;This is from a table with the first expression of count(MY_ID) which works fine, but the above SA expression returns the same value as the previous expression.&lt;BR /&gt;The now(2) returns the program start timestamp, -7 is 7 days ago, which works fine in a simple text box. Using the $() to return the calculated number for the timestamp.&lt;BR /&gt;The field MY_DateTimeStamp has the number value of the datetime.&lt;BR /&gt;I think the problem is in the SA expression as it works when i manually enter a date in num format. i.e {&amp;gt;=40111.12345}&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peter.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 10:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225231#M77564</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2010-04-27T10:56:18Z</dc:date>
    </item>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225232#M77565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be SA or data format of the MY_DateTimeStamp field or both. I'm not "fluent" in SA syntax, sorry. Just try playing with it and figure out.&lt;BR /&gt;(Maybe it makes sense for you to submit a separate question here. Usualy I don't read posts with many replies - probably most people do the same.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 14:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225232#M77565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-27T14:07:46Z</dc:date>
    </item>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225233#M77566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Just to finish my own question, i fixed the syntax, it was a missing =&lt;BR /&gt;&lt;BR /&gt;Correct formular is&lt;BR /&gt;Count ({&amp;lt;MY_DateTimeStamp ={'&amp;gt;=$(=now(2)-7)'}&amp;gt;}MY_ID)&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 14:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225233#M77566</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2010-04-27T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Time in QlikView, in num() format</title>
      <link>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225234#M77567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, makes perfect sense &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Apr 2010 18:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-in-QlikView-in-num-format/m-p/225234#M77567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-04-27T18:17:52Z</dc:date>
    </item>
  </channel>
</rss>

