<?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 Storing only the filtered records in the existing QVD. Based on the Max(LoginDate) from existing QVD. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302385#M1193487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your effort and time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like it is working fine. Though I do the same thing here it is not working in mine. I think the problem may be because of the date format. I will try to work more on it and will update you on this. Long time I am trying in mine but it is not working at all &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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>Mon, 20 Jun 2011 13:29:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-20T13:29:05Z</dc:date>
    <item>
      <title>Storing only the filtered records in the existing QVD. Based on the Max(LoginDate) from existing QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302383#M1193485</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 some one please help me out with the following requirement which is there in between the block(//////////). It is little urgent!&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;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;Store Login into Login.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Login;&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;Select LoginDate, User, 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;&lt;STRONG&gt;///////////////////////// Requirement /////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Using the Max(LoginDate) from the Login. I need to filter data which has to be concatenated with the Login.qvd from Status.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Only those records in which LoginDate &amp;gt; Max(LoginDate){Which is loaded from the above qvd file} should store in to the existing qvd(Login.qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. For the above 2 requirement what should be there in the below "WHERE" condition?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;///////////////////////////////////////////////////////////////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Login:&lt;/P&gt;&lt;P&gt;&lt;BR /&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;WHERE &lt;STRONG&gt;???&lt;/STRONG&gt;;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302383#M1193485</guid>
      <dc:creator />
      <dc:date>2011-06-20T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Storing only the filtered records in the existing QVD. Based on the Max(LoginDate) from existing QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302384#M1193486</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save both file at same location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 12:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302384#M1193486</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-20T12:34:53Z</dc:date>
    </item>
    <item>
      <title>Storing only the filtered records in the existing QVD. Based on the Max(LoginDate) from existing QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302385#M1193487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your effort and time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like it is working fine. Though I do the same thing here it is not working in mine. I think the problem may be because of the date format. I will try to work more on it and will update you on this. Long time I am trying in mine but it is not working at all &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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>Mon, 20 Jun 2011 13:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302385#M1193487</guid>
      <dc:creator />
      <dc:date>2011-06-20T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Storing only the filtered records in the existing QVD. Based on the Max(LoginDate) from existing QVD.</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302386#M1193488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to trouble you! I have copied my script so that it is easy for you to help me out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I can attach the application but it takes time.&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;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 Date(@1,'DD/MM/YYYY') 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 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;BR /&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;Login:&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;MAX1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Max(Date(LoginDate)) as MaxDate1 Resident Login where WILDMATCH (Product,'*abc*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMax1 = Peek('MaxDate1',-1, MAX1); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Drop table MAXDATE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Max(Date(LoginDate)) as MaxDate2 Resident Login where WILDMATCH (Product,'*cde*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMax2 = Peek('MaxDate2',-1, MAX2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Drop table MAX2; &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;//Logon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//CONCATENATE(Login)&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;Login:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date(@1,'DD/MM/YYYY') 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;Where Date(@1,'DD/MM/YYYY') &amp;gt; Date($(vMax1),'DD/MM/YYYY'); &lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Store Login into Login.qvd (qvd);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 14:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-only-the-filtered-records-in-the-existing-QVD-Based-on/m-p/302386#M1193488</guid>
      <dc:creator />
      <dc:date>2011-06-20T14:35:12Z</dc:date>
    </item>
  </channel>
</rss>

