<?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: Compare timestamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802296#M661388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use Timestamp#() function.After this it is just as simple as integer comparison.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 08:28:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-27T08:28:23Z</dc:date>
    <item>
      <title>Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802293#M661385</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 would like to create a report with all orders which are created after a specific date and time.&lt;/P&gt;&lt;P&gt;All orders have a created timestamp. I would like to see all orders which are created since 15:00 o'clock the day before today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried different formats, but I can't get it done. Could someone please explain which format I need to use for the following fields to compare them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Oracle database field: createdate&lt;/LI&gt;&lt;LI&gt;Variable in QlikView: date of today minus 1 (to show yesterday) + 15.00 o'clock&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802293#M661385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-27T08:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802294#M661386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;did you try to create in load script a field structured as YYYYMMDDHHMMSS? So it will be easy to comparate two integers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802294#M661386</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-02-27T08:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802295#M661387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to load the createdate from the oracle database like this: to_char(aoadorder.createdate,'DD-MM-YYYY HH24:MI') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV I created a variable like this: &lt;SPAN class="s1"&gt;timestamp#&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;today&lt;/SPAN&gt;()&amp;amp;' 15:00') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I compare these two, it has no effect. So I assume I do something wrong with the formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802295#M661387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-27T08:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802296#M661388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use Timestamp#() function.After this it is just as simple as integer comparison.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802296#M661388</guid>
      <dc:creator />
      <dc:date>2015-02-27T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802297#M661389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script create variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;vTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-1),'03:00'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In UI:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(=today()-1)'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'&amp;gt;=$(=vTime)'}&amp;gt;} Amount) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802297#M661389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-27T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802298#M661390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, you pointed me in the right direction. Solved the problem by first checking the date and after that checking the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 08:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-timestamps/m-p/802298#M661390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-27T08:57:07Z</dc:date>
    </item>
  </channel>
</rss>

