<?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: Appending each week data in a QVD! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296068#M1193330</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 didn't try with the solution that you have provided as I need to understand everything before implementing in mine. I am trying something like below. If I am loading it for the first time as there won't be any Login.qvd created. Could which is inside the block(/////) will be executed. For next time onwards whatever the code which is there after "end if" will be executed(Which will concatenate the data into the login.qvd from the text file and as well from the session log).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One which I still wanted to do it here is I want to check the max(LoginDate) which is loaded from the text file and max(LoginDate) which is loaded from the sessions qvd. Both is there now in a single qvd(Login.qvd). Using this two max(LoginDate) I want to concatenate the data in to the Login.qvd which is there in the 2nd block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on how to to get the max(LoginDate) from Text file and Session log which can be used in the 2nd block. I think to get the Max(LoginDate) we need to write where condition to pull the Max(LoginDate) from the one which is loaded in the text file and Sessions Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;/**************************************** 1st Block*************************************/&lt;BR /&gt;//////////////////////&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if isnull(filetime('C:\Login.qvd')) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;Store Login into Login.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Logon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////&lt;/P&gt;&lt;P&gt;/**************************************** 2st Block*************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;Store Logon into Logon.qvd (qvd); &lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jun 2011 12:00:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-18T12:00:32Z</dc:date>
    <item>
      <title>Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296063#M1193325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me out to do following thing please. With some example could be much better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On weekly basis I will be getting a file called status.txt. The file name will not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It should be appended each week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Need to store the current week status(status.txt) in a qvd and then load from QVD followed by loading from the new txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to receive reply from some one soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 17:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296063#M1193325</guid>
      <dc:creator />
      <dc:date>2011-06-16T17:47:57Z</dc:date>
    </item>
    <item>
      <title>Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296064#M1193326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest way is to put a timestamp into the QVD file name and then load from it with a wildcard.&amp;nbsp; For example, to create:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vDateStamp = date(today(), 'YYYYMMDD');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DataFile:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM WeeklyFile.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE DataFile INTO Data\DataFile_$(vDateStamp).qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then when you come to load from a folder full of dated QVD files it would simply be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Data\DataFile_*.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This assumes that there is no duplication of rows between weekly files, and all files arrive in exactly the same format.&amp;nbsp; I would recommend not using * to load fields - and reference them all explicitly.&amp;nbsp; This will mean if a file does come in the wrong format the create of the QVD will fail, rather than the load from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading from many files will mean that the load will be slightly slower than from a single QVD file and the QVD's will take up slightly more space on the disk.&amp;nbsp; You could build a routine that occaisionally loads all QVD's with a wildcard (as above) and then writes out a new QVD with data from all the source files in.&amp;nbsp; The source files can then be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a unique key on each row then you can add bulletproofing around importing the same row more than once by using WHERE EXISTS.&amp;nbsp; If there is no key you just need to be very careful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://www.quickintelligence.co.uk/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 20:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296064#M1193326</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-06-16T20:14:08Z</dc:date>
    </item>
    <item>
      <title>Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296065#M1193327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! This is not the way client has requested for. I want to load everything in a single qvd and then append it everyweek. Managing multiple QVD's will be very difficult and as said it will affect the performance as well. Requesting you to suggest some thing as per their requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any doubts please let me know on that. I will try to post you more details on this soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 18:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296065#M1193327</guid>
      <dc:creator />
      <dc:date>2011-06-17T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296066#M1193328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;MyData:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM MyWeeklyFile.txt (blah blah blah)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CONCATENATE (Data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM MyQVD.qvd (QVD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;STORE MyData INTO MyQVD.qvd (QVD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with Steve's suggestion, I'm assuming no duplication of rows.&amp;nbsp; You may need to reference a key, or append the week onto the data as a field, or who knows what else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 00:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296066#M1193328</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-18T00:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296067#M1193329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and let you know on that but I feel it may not work as I wants to do something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/125391#125391"&gt;http://community.qlik.com/message/125391#125391&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 06:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296067#M1193329</guid>
      <dc:creator />
      <dc:date>2011-06-18T06:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296068#M1193330</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 didn't try with the solution that you have provided as I need to understand everything before implementing in mine. I am trying something like below. If I am loading it for the first time as there won't be any Login.qvd created. Could which is inside the block(/////) will be executed. For next time onwards whatever the code which is there after "end if" will be executed(Which will concatenate the data into the login.qvd from the text file and as well from the session log).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One which I still wanted to do it here is I want to check the max(LoginDate) which is loaded from the text file and max(LoginDate) which is loaded from the sessions qvd. Both is there now in a single qvd(Login.qvd). Using this two max(LoginDate) I want to concatenate the data in to the Login.qvd which is there in the 2nd block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me on how to to get the max(LoginDate) from Text file and Session log which can be used in the 2nd block. I think to get the Max(LoginDate) we need to write where condition to pull the Max(LoginDate) from the one which is loaded in the text file and Sessions Log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;/**************************************** 1st Block*************************************/&lt;BR /&gt;//////////////////////&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if isnull(filetime('C:\Login.qvd')) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;Store Login into Login.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Logon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////////////////////////&lt;/P&gt;&lt;P&gt;/**************************************** 2st Block*************************************/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq)&lt;BR /&gt;;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;Store Logon into Logon.qvd (qvd); &lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 12:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296068#M1193330</guid>
      <dc:creator />
      <dc:date>2011-06-18T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296069#M1193331</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 want to load only those data which is not available in the WHERE condition of the 2nd block. I tried to store the max(logindate) of both text file and session log in a varialble but it didn't work. Also tried to load the max(LoginDate) from both the text file and sessions log in a seperate table of a field but it didn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some please do the required change in the 2nd block of my code so that it store only those rows which is not available in the existing qvd(&lt;STRONG&gt;I need your help where the text is in BOLD letters in 2nd block&lt;/STRONG&gt;). This is urgent requirement! Hope you can understand!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;/**************************************** 1st Block*************************************/&lt;BR /&gt;//////////////////////&lt;BR /&gt;if isnull(filetime('C:\Login.qvd')) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels);&lt;/P&gt;&lt;P&gt;Store Login into Login.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Logon;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if;&lt;BR /&gt;////////////////////////&lt;/P&gt;&lt;P&gt;/**************************************** 2nd Block*************************************/&lt;BR /&gt;Logon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(qvd);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD @1 as LoginDate, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq)&lt;BR /&gt;&lt;STRONG&gt;WHERE Date(@1) &amp;gt; Max(LoginDate) of text file;&lt;/STRONG&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Product, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;BR /&gt;FROM&lt;BR /&gt;$(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels)&lt;BR /&gt;&lt;STRONG&gt;WHERE Date(@1) &amp;gt; Max(LoginDate) of session log;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store Logon into Logon.qvd (qvd); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 05:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296069#M1193331</guid>
      <dc:creator />
      <dc:date>2011-06-20T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296070#M1193332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this, perhaps, but there are probably syntax errors.&amp;nbsp; The idea is to load from the QVD, set a variable to the max date on the QVD, and then use that variable in the subsequent loads.&amp;nbsp; If there is no QVD, you'll use date(0), so anything from 1900 on.&amp;nbsp; I also recommend using a login timestamp instead of date if that makes sense for your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DIRECTORY C:\;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;IF&amp;nbsp; filetime('Login.qvd')&amp;gt;0 THEN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Login:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD LoginDate, User, Product&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Login.qvd (QVD);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxDate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD max(Date) as MaxDate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD date(fieldvalue('LoginDate',recno())) as Date&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AUTOGENERATE fieldvaluecount('LoginDate');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMaxDate = peek('MaxDate');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE MaxDate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ELSE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vMaxDate = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;END IF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Login: // will concatenate if already exists, else will create&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD @1 as LoginDate, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as User, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Product&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM Status.txt (txt, codepage is 1252, no labels, delimiter is ',', msq)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE Date(@1) &amp;gt; date($(vMaxDate));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;CONCATENATE (Login)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD Product, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoginDate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM $(Path)\SESSIONS*.LOG (utf8, txt, delimiter is '\t', embedded labels)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE Date(@1) &amp;gt; date($(vMaxDate));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;STORE Login INTO Login.qvd (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 00:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296070#M1193332</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-21T00:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending each week data in a QVD!</title>
      <link>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296071#M1193333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to understand the solution first before implementing on mine. Right now I am trying something the same script which I am working these days. Once done with that I will try with yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attitude&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 04:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Appending-each-week-data-in-a-QVD/m-p/296071#M1193333</guid>
      <dc:creator />
      <dc:date>2011-06-21T04:58:19Z</dc:date>
    </item>
  </channel>
</rss>

