<?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: Bug comparing time stamp in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704203#M673725</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashfaq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ' ' around the variable doesn't appear to be the bug. The problem I think is that incidentally TimeStamp and vMostRecent appear to have identical numeric value. That's why I think my workaround works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Aug 2014 11:28:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-03T11:28:59Z</dc:date>
    <item>
      <title>Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704198#M673720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached please find the qvw and qvd to illustrate my problem while attempting to load records with the most recent time stamp.&amp;nbsp; I ended up applying a workaround.&amp;nbsp; I appreciate it if you can provide a proper solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 18:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704198#M673720</guid>
      <dc:creator />
      <dc:date>2014-08-02T18:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704199#M673721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lawrence, try&lt;/P&gt;&lt;P&gt;WHERE TimeStamp &amp;gt;= '$(vMostRecent)'&lt;/P&gt;&lt;P&gt;I suspect that without single quotes it considers the variable as expression and tries to calculate&lt;/P&gt;&lt;P&gt;The workaround works because this -.0.0000001 converts timestamp format to numeric, which is OK to compare with the timestamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 20:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704199#M673721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-02T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704200#M673722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Group By() function to get Max Timestamps with every Id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Id&lt;/P&gt;&lt;P&gt;Max(TimeStamp) as mostRecent&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TimeStampProblem.qvd&lt;/P&gt;&lt;P&gt;(qvd) Group By Id;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 20:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704200#M673722</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-08-02T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704201#M673723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_1407044520305567 jive_macro_code" jivemacro_uid="_1407044520305567"&gt;
&lt;P&gt;temp:&lt;/P&gt;
&lt;P&gt;LOAD Max(TimeStamp) as mostRecent&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;TimeStampProblem.qvd&lt;/P&gt;
&lt;P&gt;(qvd);&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;LET vMostRecent = Peek(mostRecent);&lt;/P&gt;
&lt;P&gt;DROP Table temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Items:&lt;/P&gt;
&lt;P&gt;LOAD TimeStamp, Id&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;TimeStampProblem.qvd&lt;/P&gt;
&lt;P&gt;(qvd)&lt;/P&gt;
&lt;P&gt;WHERE TimeStamp &amp;gt;= '$(vMostRecent)' // this doesn't work&lt;/P&gt;
&lt;P&gt;//WHERE TimeStamp &amp;gt;= $(vMostRecent) - 0.00000001 // my workaround&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;// ----- clean up -----&lt;/P&gt;
&lt;P&gt;LET vMostRecent = Null();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 05:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704201#M673723</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-03T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704202#M673724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ' ' doesn't appear to be the problem; I've tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem appears to be that the value TimeStamp is exactly equal to vMostRecent. Incidentally, both are numeric. That's why I think the workaround works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 11:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704202#M673724</guid>
      <dc:creator />
      <dc:date>2014-08-03T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704203#M673725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashfaq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ' ' around the variable doesn't appear to be the bug. The problem I think is that incidentally TimeStamp and vMostRecent appear to have identical numeric value. That's why I think my workaround works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 11:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704203#M673725</guid>
      <dc:creator />
      <dc:date>2014-08-03T11:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704204#M673726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aviral Nag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying. Locating the correct max timestamp value isn't the source of the bug. The bug is in the WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 11:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704204#M673726</guid>
      <dc:creator />
      <dc:date>2014-08-03T11:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704205#M673727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;BR /&gt;I have even changed variable defination&lt;/P&gt;&lt;P&gt;Earlier&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;LET vMostRecent = Peek('mostRecent');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;LET vMostRecent = Peek(mostRecent);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;ASHFAQ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 13:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704205#M673727</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-03T13:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bug comparing time stamp in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704206#M673728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "&lt;STRONG&gt;exactly&lt;/STRONG&gt; equal" is the explanation.&amp;nbsp; It's impossible to have timestamps exactly equal.&amp;nbsp; Use your workaround, or use &amp;gt; instead of &amp;gt;=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 13:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-comparing-time-stamp-in-load-script/m-p/704206#M673728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-03T13:27:22Z</dc:date>
    </item>
  </channel>
</rss>

