<?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: Incremental Load - Where Clause when generating QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151842#M29503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use temporal tables&amp;nbsp; in your database&amp;nbsp; (like ##name) and exctract only the information that you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 22:48:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-12T22:48:28Z</dc:date>
    <item>
      <title>Incremental Load - Where Clause when generating QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151840#M29501</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;I have been attepting to get an incremental load working, and I am happy to report after much messing around with the syntax I am almost there... In fact the process works fine right up until I try to drop old data from the old QVD when creating the new QVD.&lt;/P&gt;&lt;P&gt;I believe that the issue is due to an in cosistency on the format of the fields/values being used in the where&lt;/P&gt;&lt;P&gt;The code I am using to create the new QVD is&lt;/P&gt;&lt;P&gt;// Store new QVD&lt;BR /&gt;Store Tracker_Template into Tracker_Template.qvd&lt;BR /&gt;WHERE (TIMESTAMP_DATE &amp;gt; '$(QVD_START)');&lt;BR /&gt;&lt;BR /&gt;From what I can see in the tables the format of TIMESTAMP_Date is YYYY-MM-DD HH:MM:SS.[FF3] and the variable has been defined as YYYY-MM-DD HH:MM:SS&lt;BR /&gt;&lt;BR /&gt;For some reason I can not work out a way of formating the TIMESTAMP_DATE field from the QVD I have tried using:&lt;/P&gt;&lt;P&gt;timestamp function&lt;BR /&gt;Date function&lt;BR /&gt;Or doing nothing&lt;BR /&gt;&lt;BR /&gt; And nothing seems to work, has any one got any ideas????&lt;/P&gt;&lt;P&gt;By the way the syntax for generating the variable QVD_START is as follows:&lt;/P&gt;&lt;P&gt;// Picks up the maximum Timestamp data from the data present in the QVD file&lt;BR /&gt;Dates:&lt;BR /&gt;LOAD&lt;BR /&gt;//Max(Timestamp([TIMESTAMP_DATE], 'YYYY-MM-DD HH:mm:ss.FF3')) as TIMESTAMP&lt;BR /&gt;Max(Date([TIMESTAMP_DATE], 'YYYY-MM-DD HH:MM:SS')) as MAX_TIMESTAMP,&lt;BR /&gt;Min(Date([TIMESTAMP_DATE], 'YYYY-MM-DD 00:00:01')) as MIN_TIMESTAMP,&lt;BR /&gt;Date(Now(1), 'YYYY-MM-DD 00:00:01') as QVD_END,&lt;BR /&gt;Date(AddMonths(AddYears(MonthEnd((Now(1)-1)),-1),-1), 'YYYY-MM-DD 00:00:01') as QVD_START&lt;BR /&gt;From Tracker_Template.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;// Defines a variable containing the maximum date to be used in the where clause of the incremental extraction&lt;BR /&gt;Let MAX_TIMESTAMP = peek ('MAX_TIMESTAMP',0,Dates);&lt;BR /&gt;Let MIN_TIMESTAMP = peek ('MIN_TIMESTAMP',0,Dates);&lt;BR /&gt;Let QVD_END = peek ('QVD_END',0,Dates);&lt;BR /&gt;Let QVD_START = peek ('QVD_START',0,Dates);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 13:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151840#M29501</guid>
      <dc:creator />
      <dc:date>2010-08-06T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Incremental Load - Where Clause when generating QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151841#M29502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Store statement does not take where-condition. You can only store full set of data from a table or fields. And storing will always replace the old QVD file (no update or append records).&lt;BR /&gt;There are good examples in QV help file, under index "QVD files and Incremental Load".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 14:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151841#M29502</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-08-06T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental Load - Where Clause when generating QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151842#M29503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use temporal tables&amp;nbsp; in your database&amp;nbsp; (like ##name) and exctract only the information that you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 22:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-Load-Where-Clause-when-generating-QVD/m-p/151842#M29503</guid>
      <dc:creator />
      <dc:date>2012-10-12T22:48:28Z</dc:date>
    </item>
  </channel>
</rss>

