<?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 Delete useless records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192905#M54388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rob, forgot about that little gotcha - guess I always find something to rename in my load scripts. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Dec 2009 04:53:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-19T04:53:29Z</dc:date>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192901#M54384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Assume I have loaded a table with n records regarding years 2006, 2007, 2008 and 2009. I need all those records for my calculations but, at the end of the script, I need to keep just years from 2007 to 2009, ie year 2006 records are useless.&lt;/P&gt;&lt;P&gt;How can I delete them, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 22:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192901#M54384</guid>
      <dc:creator />
      <dc:date>2009-12-18T22:51:16Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192902#M54385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I can think of will add a bit to the total load time, depending on how many records you have. How about a resident load from the original table with a where clause (i.e., where year &amp;gt;= 2007) and then drop the original table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 23:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192902#M54385</guid>
      <dc:creator />
      <dc:date>2009-12-18T23:23:33Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192903#M54386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jen.&lt;/P&gt;&lt;P&gt;I'm now worried about disk usage, even if I'm talking about several thousend of records, but about that previous years will pollute the overall data (otherwise I'll need to make several filters).&lt;/P&gt;&lt;P&gt;Your solutions unfortunately doesn't work, since if I resident load a table with exactely the same data of another one, QlikView doesn't create it, but just keep the previous one. Thanks anyway for the idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 23:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192903#M54386</guid>
      <dc:creator />
      <dc:date>2009-12-18T23:38:53Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192904#M54387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;lcortese wrote:&lt;BR /&gt;Your solutions unfortunately doesn't work, since if I resident load a table with exactely the same data of another one, QlikView doesn't create it, but just keep the previous one. Thanks anyway for the idea.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Jen's suggestion will work if you use the NOCONCATENATE keyword to force the creation of a new table.&lt;/P&gt;&lt;P&gt;Another approach that may work is a self join.&lt;/P&gt;&lt;P&gt;RIGHT JOIN (data) LOAD DISTINCT *&lt;BR /&gt;RESIDENT data&lt;BR /&gt;WHERE match(Year, 2006, 2007);&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2009 04:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192904#M54387</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-12-19T04:01:18Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192905#M54388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rob, forgot about that little gotcha - guess I always find something to rename in my load scripts. &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2009 04:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192905#M54388</guid>
      <dc:creator />
      <dc:date>2009-12-19T04:53:29Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192906#M54389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often remove records from existing tables using inner joins to inline loads. It's very fast. In this case, I would expect something like this to do the trick:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;INNER JOIN (Data)&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Year&lt;BR /&gt;2007&lt;BR /&gt;2008&lt;BR /&gt;2009&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;In a real application, you'll probably want to do an autogenerate based on the current date so that you don't have to change anything come 2010 to drop off 2007 (assuming you want it to drop off). Something like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;INNER JOIN (Data)&lt;BR /&gt;LOAD year(today())+recno()-3 as Year&lt;BR /&gt;AUTOGENERATE 3&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;If you don't want 2007 to drop off when you hit 2010:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;INNER JOIN (Data)&lt;BR /&gt;LOAD 2006+recno() as Year&lt;BR /&gt;AUTOGENERATE year(today())-2006&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2009 05:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192906#M54389</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-19T05:06:16Z</dc:date>
    </item>
    <item>
      <title>Delete useless records</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192907#M54390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jen for the first and fast help. Thanks to Rob for the note about Jen's suggestion and for his proposal. Thanks to John for his always complete and elegant answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 15:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-useless-records/m-p/192907#M54390</guid>
      <dc:creator />
      <dc:date>2009-12-21T15:56:08Z</dc:date>
    </item>
  </channel>
</rss>

