<?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 Incremental reloading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462067#M172549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on Incremental reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure I followed for the same is:&lt;/P&gt;&lt;P&gt;1. 1st time full load and store data in qvd with timestamp field.&lt;/P&gt;&lt;P&gt;2. Next time I get the max value of the timestamp field from the qvd.&lt;/P&gt;&lt;P&gt;3. read new or updated records from database based on the timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here in step 2 I dont get the correct max value.&lt;/P&gt;&lt;P&gt;Please can anyone help me on this issue of how to get the max timestamp value from qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2013 07:30:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-22T07:30:02Z</dc:date>
    <item>
      <title>Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462067#M172549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on Incremental reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure I followed for the same is:&lt;/P&gt;&lt;P&gt;1. 1st time full load and store data in qvd with timestamp field.&lt;/P&gt;&lt;P&gt;2. Next time I get the max value of the timestamp field from the qvd.&lt;/P&gt;&lt;P&gt;3. read new or updated records from database based on the timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here in step 2 I dont get the correct max value.&lt;/P&gt;&lt;P&gt;Please can anyone help me on this issue of how to get the max timestamp value from qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 07:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462067#M172549</guid>
      <dc:creator />
      <dc:date>2013-02-22T07:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462068#M172550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u load sample application or data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 07:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462068#M172550</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-02-22T07:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462069#M172551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post script with those 3 steps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 07:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462069#M172551</guid>
      <dc:creator />
      <dc:date>2013-02-22T07:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462070#M172552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use function :&amp;nbsp; &lt;STRONG&gt;Timestamp(Timestamp#(Max(field))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 07:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462070#M172552</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-02-22T07:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462071#M172553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;1. LET TimeStamp = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;2. LET vQvdExists = if(FileSize('$(vQvdPath)' &amp;amp; '$(vQvdName)') &amp;gt; 0, -1, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;3. IF $(vQvdExists) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;4.&amp;nbsp;&amp;nbsp; [MaxData]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;5.&amp;nbsp;&amp;nbsp; LOAD timestamp FROM $(vQvdPath)$(vQvdName) (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;6.&amp;nbsp;&amp;nbsp; LOAD MaxString(timestamp) as Mxtimestamp Resident MaxData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;7.&amp;nbsp;&amp;nbsp; LET Maxtmstmp=Replace(Left(FieldValue('Mxtimestamp', 1), 2), '00', '0x') &amp;amp; Mid(FieldValue('Mxtimestamp', 1), 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;8. ENDIF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;9. [TblData]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;10.LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;11.PK,field1, field2, timestamp as timestamp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;12.SQL SELECT * FROM tblname&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;13.where timestamp &amp;gt; $(Maxtmstmp);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;14.IF NoOfRows('TblData') &amp;gt; 0 then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;15.&amp;nbsp; concatenate($(vTableName))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;16.&amp;nbsp; LOAD * FROM $(vQvdPath)$(vQvdName) (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;17.&amp;nbsp; WHERE Not Exists(PK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;18.&amp;nbsp; STORE $(vTableName) into $(vQvdPath)$(vQvdName);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;19.ELSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;20.&amp;nbsp; LOAD * FROM $(vQvdPath)$(vQvdName) (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;21.ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt;"&gt;timestamp is having values as "&lt;/SPAN&gt;0x0000000050548392"&lt;/P&gt;&lt;P&gt;But qlikview stores it as "000000000050548392".&lt;/P&gt;&lt;P&gt;so in line no 7 i have replaced x with 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have problem in line 5,6.&lt;/P&gt;&lt;P&gt;It does not return me correct max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get the correct max value of timestamp?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 08:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462071#M172553</guid>
      <dc:creator />
      <dc:date>2013-02-22T08:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462072#M172554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Try this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: calibri, verdana, arial, sans-serif;"&gt;Time(Frac(Max(Timestamp#(Time1,'&lt;STRONG&gt;DD/MM/YYYY hh:mm:ss&lt;/STRONG&gt;'))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;The format of your Records in time filed and Second parameter in TimeStamp#() should be same(Bold Format).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;For more understanding of Date and Time functionality go through this blog :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 08:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462072#M172554</guid>
      <dc:creator>manideep78</dc:creator>
      <dc:date>2013-02-22T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462073#M172555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the data in timestamp field is not actually datetime field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the datatype is timestamp which stores binary values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the Timestamp# function dont work. I trieds using it but it returns null value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 09:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462073#M172555</guid>
      <dc:creator />
      <dc:date>2013-02-22T09:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462074#M172556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Timestamp# converts string-timestamp value of corresponding format (second parameter) into dual value that has number and text representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) MaxString is not similar to Max finction for numeric values (look at help).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert string value into dual (i.e. numeric) value use Num# function with a corresponding format parameter.&lt;/P&gt;&lt;P&gt;Then you can use Max as aggregation function to get maximum timestamp value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you use "0x" as a prefix for timestamps and store them as texts ?&lt;/P&gt;&lt;P&gt;It's much easier just store numeric value and change the format in a GUI for user interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 18:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462074#M172556</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2013-02-22T18:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462075#M172557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value in timestamp field in database is 0&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/SPAN&gt;0000000050D7AF4F.&lt;/P&gt;&lt;P&gt;But qlikview stores it as 0&lt;STRONG style="color: #ff0000;"&gt;0&lt;/STRONG&gt;0000000050D7AF4F in QVD. replaces x with 0.&lt;/P&gt;&lt;P&gt;so while reading from QVD, i am replacing the 0 with x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now regarding getting the max value:&lt;/P&gt;&lt;P&gt;The max value in DB is 0&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;x&lt;/STRONG&gt;&lt;/SPAN&gt;0000000050D7AF4F.&lt;/P&gt;&lt;P&gt;But after reading max value from QVD I get 000000000050548392 as max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to know how can I get the correct max value.&lt;/P&gt;&lt;P&gt;Now I tried as &lt;/P&gt;&lt;P&gt;Max(Num#(Timestamp#(&lt;SPAN style="font-size: 8.0pt;"&gt;Maxtmstmp&lt;/SPAN&gt;)))&lt;/P&gt;&lt;P&gt;but still incorrect value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me how to do it if still I am going wrong somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 04:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462075#M172557</guid>
      <dc:creator />
      <dc:date>2013-02-25T04:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462076#M172558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you've figured out, the SQL Server "timestamp" column type has nothing to do with dates and times. It's an automatically incrementing binary number that indicates a row has changed. In later versions of SQL Server (2008?) the column type was renamed from "timestamp" to "revision", but it's the same thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I handle these is to convert them to decimal in a preceeding load. I'm sure there's a SQL function to do it as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; PK,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; field1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; field2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; num(num#(right(timestamp,12) '(HEX')) as timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT * FROM tblname;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right(x,12) is required because the num#() won't parse the 16 digit hex string. That takes the right 12 digits which should be enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When doing the incremental, you can just load the max(timestamp) and put it in a variable. Use the variable as is in the SQL WHERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE timestamp &amp;gt; $(maxtimestamp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no need to convert it back to a hex representation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 05:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462076#M172558</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-02-25T05:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462077#M172559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution did work successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 06:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462077#M172559</guid>
      <dc:creator />
      <dc:date>2013-03-01T06:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462078#M172560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution worked correctly on my local machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on the server, I am facing problem in getting the max timestamp value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I have done is:&lt;/P&gt;&lt;P&gt;1. Get the timestamp from database and convert it into int using convert(int, timestamp) in SQL query itself.&lt;/P&gt;&lt;P&gt;2. store the same converted timestamp in QVD.&lt;/P&gt;&lt;P&gt;3. Next time get the max from the QVD and store it in a variable $(maxtimestamp)&lt;/P&gt;&lt;P&gt;4. Then get the records from database with the condition convert(int, timestamp) &amp;gt; $(maxtimestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I found on the server that sometimes the timestamp is getting converted into -ve values and then QVD is not returning the correct max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me what to do now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 06:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462078#M172560</guid>
      <dc:creator />
      <dc:date>2013-03-07T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462079#M172561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the qlikview functions in my example instead of the SQL convert() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 18:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462079#M172561</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-07T18:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462080#M172562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had used the qlikview function as mentioned in your example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the &lt;SPAN style="font-family: 'courier new', courier;"&gt;num(num#(right(timestamp,12) '(HEX')) as timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;returned me &lt;/SPAN&gt;1356646010 for the hex value 0x0000000050DCC67A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my max hex value as per SQL. Qlikview returnes correct above max timestamp as 1356646010.&lt;/P&gt;&lt;P&gt;I stored this value in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No issue in above section. Till this point all is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now to get the records greater than 0x0000000050DCC67A, I wrote the sql query as &lt;/P&gt;&lt;P&gt;WHERE timestamp &amp;gt; $(maxtimestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my $(maxtimestamp) has value as 1356646010. So I converted to int as&amp;nbsp; WHERE convert(int, timestamp) &amp;gt; $(maxtimestamp).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not to convert to int then how to get new records from DB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My qlikview version is 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 04:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462080#M172562</guid>
      <dc:creator />
      <dc:date>2013-03-08T04:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462081#M172563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You hae already converted to an int with the num(num#()). There should be no need to use a convert(). In my experience, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;WHERE timestamp &amp;gt; $(maxtimestamp)&lt;/SPAN&gt; should be fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 00:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462081#M172563</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-09T00:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462082#M172564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;timestamp field in table is having values in hex format&lt;/P&gt;&lt;P&gt;and the variable &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(maxtimestamp) is having values in int format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Then how the where condition will work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;eg: where &lt;/SPAN&gt;0x00000000838D302D &amp;gt; -2087899091&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 04:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462082#M172564</guid>
      <dc:creator />
      <dc:date>2013-03-11T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462083#M172565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hex is just the ouput format that SQL returns to you. Have you tried my suggestion of using the int value in the WHERE clause? It works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 05:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462083#M172565</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-11T05:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462084#M172566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt knew that its just a output format of SQL.&lt;/P&gt;&lt;P&gt;so I was converting&amp;nbsp; in query also.&lt;/P&gt;&lt;P&gt;I tried now on my local machine, with WHERE &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;timestamp &amp;gt; $(maxtimestamp) and it is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;But when I tried on the server, it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I tried the following query on SQL editor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;my actual query in qlikview is where timestamp &amp;gt; &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(maxtimestamp), but for testing I have written below query.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tble&lt;/P&gt;&lt;P&gt;where timestamp = 0x0000000083B6B8D7&amp;nbsp; --- works fine. returns result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tble&lt;/P&gt;&lt;P&gt;where timestamp = 2209790167 -&amp;nbsp; returns error&lt;/P&gt;&lt;P&gt;Error converting data type timestamp to numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 06:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462084#M172566</guid>
      <dc:creator />
      <dc:date>2013-03-11T06:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462085#M172567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of SQL Server are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 14:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462085#M172567</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-11T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental reloading</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462086#M172568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my local machine, SQL server version is SQL Server 2008 R2 - 10.50.1617.0&lt;/P&gt;&lt;P&gt;and on the server it is SQL Server 2008 R2 - 10.50.1600.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more observation, not for all the values in timestamp column, I get this error.&lt;/P&gt;&lt;P&gt;for the value 2000000302 I get the output, but for 2209790167 I get the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check at your end if you have any table having timestamp field with following query (replacing TABLE with your tablename)&lt;/P&gt;&lt;P&gt;select * from TABLE&lt;/P&gt;&lt;P&gt;where timestamp = 2209790167 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 04:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-reloading/m-p/462086#M172568</guid>
      <dc:creator />
      <dc:date>2013-03-12T04:19:10Z</dc:date>
    </item>
  </channel>
</rss>

