<?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: Delete from QVD before Load? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743591#M471549</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;for processing, you load your qvd into memory anyway, right? And after the processing is all done, you store it as a qvd again.&lt;/P&gt;&lt;P&gt;So just squeeze in a RESIDENT LOAD to exclude those records (using a WHERE clause) and then proceed.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 14:32:04 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-03-04T14:32:04Z</dc:date>
    <item>
      <title>Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743589#M471547</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 a QVD with a column "DateLoad".&lt;/P&gt;&lt;P&gt;Before saving datas in my QVD, i want to delete all records where Year(DateLoad) = Current Year.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743589#M471547</guid>
      <dc:creator />
      <dc:date>2015-03-04T14:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743590#M471548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TempTable:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD * RESIDENT Table1&lt;/P&gt;&lt;P&gt;WHERE Year(DateLoad) &amp;lt;&amp;gt; Year(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Table1;&lt;/P&gt;&lt;P&gt;RENAME TABLE TempTable to Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743590#M471548</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-04T14:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743591#M471549</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;for processing, you load your qvd into memory anyway, right? And after the processing is all done, you store it as a qvd again.&lt;/P&gt;&lt;P&gt;So just squeeze in a RESIDENT LOAD to exclude those records (using a WHERE clause) and then proceed.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743591#M471549</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-04T14:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743592#M471550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code don't delete datas ? &lt;/P&gt;&lt;P&gt;Could you explain me more? I don't know where i must put the Load * from QVD\file.qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743592#M471550</guid>
      <dc:creator />
      <dc:date>2015-03-04T14:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743593#M471551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no "DELETE" command in QlikView. If you load directly from QVD, why don't you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM file.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE Year(DateLoad) &amp;lt;&amp;gt; Year(Today());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743593#M471551</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-04T14:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743594#M471552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;I think that i found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First table, i load datas from xls files.&lt;/P&gt;&lt;P&gt;Second table, i load datas from QVD&lt;/P&gt;&lt;P&gt;Third table (temp table), noconcatenate resident first table&lt;/P&gt;&lt;P&gt;Fourth table, i store the temp table in my QVD this delete records&lt;/P&gt;&lt;P&gt;Fifth, i store the First table in the QVD file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743594#M471552</guid>
      <dc:creator />
      <dc:date>2015-03-04T15:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743595#M471553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic of your script is a different problem. I just told you how to "delete" rows from a table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 15:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743595#M471553</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2015-03-04T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743596#M471554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load datas from 2 XLS files. I add a column named LoadDate with value TODAY().&lt;/P&gt;&lt;P&gt;Before saving this datas into the QVD files, i want to delete all records from QVD where Year(LoadDateQVD) = Year(Today()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exemple :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Xls1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load FieldTest,&lt;/P&gt;&lt;P&gt;Today() as LoadDate&lt;/P&gt;&lt;P&gt;From Path\ExcelFile1.xls&lt;/P&gt;&lt;P&gt;Where FieldTest&amp;lt;&amp;gt;'002';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Xls2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load FieldTest2,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Today() as LoadDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From Path\ExcelFile2.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident Xls1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Xls1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//DELETE FROM QVD Where Year(LoadDate) into QVD = Year(Today())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Store Xls2 into QVD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 06:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743596#M471554</guid>
      <dc:creator />
      <dc:date>2015-03-05T06:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete from QVD before Load?</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743597#M471555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that i found the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added this script at the top of my script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DeleteRecords:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From QVD\File.qvd (qvd)&lt;/P&gt;&lt;P&gt;Where Year(LoadDate)&amp;lt;&amp;gt;Year(Today());&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Store DeleteRecords into QVD\&lt;SPAN style="font-size: 13.3333330154419px;"&gt;File&lt;/SPAN&gt;.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Drop table DeleteRecords;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i load from XLS files and i store result into File.QVD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you OK with this script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 07:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-from-QVD-before-Load/m-p/743597#M471555</guid>
      <dc:creator />
      <dc:date>2015-03-05T07:22:56Z</dc:date>
    </item>
  </channel>
</rss>

