<?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 Script variable headache in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-variable-headache/m-p/1207508#M387835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the script below I'm testing an incremental load to only load new records.&amp;nbsp; Using the debugger I can see that the variable correctly stores the datetime 10/12/2015 00:00:01 as the number 42348.000011574.&amp;nbsp; However when I instruct the load to only bring in records greater than this datetime it also brings in records with the same date (10/12/2015 00:00:01).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141338_Capture.JPG" style="height: 237px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;To test it further I stored three test fields.&amp;nbsp; Test1 is the datetime from the records I want to load, test2 is the variable and test3 is the variable minus the record date.&amp;nbsp; When I look at them in the front end (see below) I can see that both the variable and the record date are the same, yet Qlikview shows a difference between them.&amp;nbsp; I'm sure it's something to do with the dollar expansion because if I take that off the second expression the difference shows as zero (the result I want) but I can't think of a way to achieve the same thing in the script.&amp;nbsp; Basically, Qlikview is storing the variable result correctly but when I try to use it in the script it must be applying a different figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141339_Capture2.JPG" style="height: 139px; width: 620px;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 07:59:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-20T07:59:45Z</dc:date>
    <item>
      <title>Script variable headache</title>
      <link>https://community.qlik.com/t5/QlikView/Script-variable-headache/m-p/1207508#M387835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the script below I'm testing an incremental load to only load new records.&amp;nbsp; Using the debugger I can see that the variable correctly stores the datetime 10/12/2015 00:00:01 as the number 42348.000011574.&amp;nbsp; However when I instruct the load to only bring in records greater than this datetime it also brings in records with the same date (10/12/2015 00:00:01).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/141338_Capture.JPG" style="height: 237px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;To test it further I stored three test fields.&amp;nbsp; Test1 is the datetime from the records I want to load, test2 is the variable and test3 is the variable minus the record date.&amp;nbsp; When I look at them in the front end (see below) I can see that both the variable and the record date are the same, yet Qlikview shows a difference between them.&amp;nbsp; I'm sure it's something to do with the dollar expansion because if I take that off the second expression the difference shows as zero (the result I want) but I can't think of a way to achieve the same thing in the script.&amp;nbsp; Basically, Qlikview is storing the variable result correctly but when I try to use it in the script it must be applying a different figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/141339_Capture2.JPG" style="height: 139px; width: 620px;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-variable-headache/m-p/1207508#M387835</guid>
      <dc:creator />
      <dc:date>2016-10-20T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script variable headache</title>
      <link>https://community.qlik.com/t5/QlikView/Script-variable-headache/m-p/1207509#M387836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There were no responses so I assume this caused other people headaches too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved it using the interval function though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-variable-headache/m-p/1207509#M387836</guid>
      <dc:creator />
      <dc:date>2016-11-01T15:45:47Z</dc:date>
    </item>
  </channel>
</rss>

