<?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: how to know qvd file max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389406#M814915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a date field in your QVD file? Then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;LOAD MAX(ModifiedDate) As LastModifiedDate&lt;/P&gt;&lt;P&gt;FROM XYZ.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = Peek('ModifiedDate',0,'MaxDate');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can use your vMaxDate variable in your following scripts where necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 12:37:45 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-09-11T12:37:45Z</dc:date>
    <item>
      <title>how to know qvd file max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389403#M814912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we read a qvd file to load additional data using read data as filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loaded a qvd file&lt;/P&gt;&lt;P&gt;max date is 2017-01-01 (how can i know that date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, if possible, how can i use that variable in a process to load more dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389403#M814912</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to know qvd file max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389404#M814913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Filetime() function inside the QVD Reader app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FileTime() as FileTime&lt;/P&gt;&lt;P&gt;From Operator.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the Filetime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389404#M814913</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-11T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to know qvd file max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389405#M814914</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;Filetime() returns the date and time of the last modification of the file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. Load *, filetime() as X from abc.txt ; from QlikHelp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389405#M814914</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2017-09-11T12:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to know qvd file max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389406#M814915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a date field in your QVD file? Then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;LOAD MAX(ModifiedDate) As LastModifiedDate&lt;/P&gt;&lt;P&gt;FROM XYZ.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxDate = Peek('ModifiedDate',0,'MaxDate');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can use your vMaxDate variable in your following scripts where necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389406#M814915</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-09-11T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to know qvd file max date</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389407#M814916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give it a try with&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15051335070973966" jivemacro_uid="_15051335070973966" modifiedtitle="true"&gt;
&lt;P&gt;// existing data&lt;/P&gt;
&lt;P&gt;Data: LOAD * FROM MyData.QVD (QVD);&lt;/P&gt;
&lt;P&gt;// determine highest date&lt;/P&gt;
&lt;P&gt;MaxDate: LOAD MAX(MyDate)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS LastDate; LOAD FIELDVALUE('MyDate', RECNO())&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS MyDate AUTOGENERATE FIELDVALUECOUNT('MyDate');&lt;/P&gt;
&lt;P&gt;// assign highest date to a variable&lt;/P&gt;
&lt;P&gt;LET dMaxDate = NUM(PEEK('LastDate', 0, 'MaxDate'));&lt;/P&gt;
&lt;P&gt;DROP TABLE MaxDate;&lt;/P&gt;
&lt;P&gt;// add new data to the existing ones&lt;/P&gt;
&lt;P&gt;CONCATENATE (Data) LOAD MyDate, ..... FROM ..... WHERE NUM(MyDate) &amp;gt;= $(dMaxDate);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 12:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-know-qvd-file-max-date/m-p/1389407#M814916</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-11T12:38:57Z</dc:date>
    </item>
  </channel>
</rss>

