<?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: 100 oldest records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493861#M184733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fra: thomas jensen&lt;/P&gt;&lt;P&gt;Sendt: 21. oktober 2013 09:05&lt;/P&gt;&lt;P&gt;Til: Schou, Hans Henrik Søren (SSC009)&lt;/P&gt;&lt;P&gt;Emne: Re:&amp;nbsp; - 100 oldest records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QlikCommunity&amp;lt;&lt;/SPAN&gt;&lt;A class="" href="http://community.qlik.com/"&gt;http://community.qlik.com/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100 oldest records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reply from thomas jensen&amp;lt;&lt;/SPAN&gt;&lt;A class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="98427" data-objecttype="3" href="http://community.qlik.com/people/TJETJETJE?et=watches.email.thread"&gt;http://community.qlik.com/people/TJETJETJE?et=watches.email.thread&lt;/A&gt;&lt;SPAN&gt;&amp;gt; in App Development - View the full discussion&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.qlik.com/message/409154?et=watches.email.thread#409154"&gt;http://community.qlik.com/message/409154?et=watches.email.thread#409154&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Oct 2013 07:07:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-21T07:07:20Z</dc:date>
    <item>
      <title>100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493859#M184731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem in a nutshell is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I load data from an excel file every monday morning.&lt;/P&gt;&lt;P&gt;The file consist of ex. a recordnumber and a recorddate.&lt;/P&gt;&lt;P&gt;the excelfile builds op/accumulate data every day.&lt;/P&gt;&lt;P&gt;the excelfile start every time at 1. january so every time I load data there will be duplicates which I dont want.&lt;/P&gt;&lt;P&gt;I only want to load the new records - not the ones from last week.&lt;/P&gt;&lt;P&gt;How do i work around not loading duplicates.???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondly i want to get the 100 oldest records every monday and the 100 oldest records must not be the same next monday&lt;/P&gt;&lt;P&gt;so I nedd to set some kind of flag?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 10:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493859#M184731</guid>
      <dc:creator />
      <dc:date>2013-09-30T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493860#M184732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a sample you could share? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493860#M184732</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493861#M184733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fra: thomas jensen&lt;/P&gt;&lt;P&gt;Sendt: 21. oktober 2013 09:05&lt;/P&gt;&lt;P&gt;Til: Schou, Hans Henrik Søren (SSC009)&lt;/P&gt;&lt;P&gt;Emne: Re:&amp;nbsp; - 100 oldest records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QlikCommunity&amp;lt;&lt;/SPAN&gt;&lt;A class="" href="http://community.qlik.com/"&gt;http://community.qlik.com/&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100 oldest records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reply from thomas jensen&amp;lt;&lt;/SPAN&gt;&lt;A class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="98427" data-objecttype="3" href="http://community.qlik.com/people/TJETJETJE?et=watches.email.thread"&gt;http://community.qlik.com/people/TJETJETJE?et=watches.email.thread&lt;/A&gt;&lt;SPAN&gt;&amp;gt; in App Development - View the full discussion&amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.qlik.com/message/409154?et=watches.email.thread#409154"&gt;http://community.qlik.com/message/409154?et=watches.email.thread#409154&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493861#M184733</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493862#M184734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh okay - I dont know which datafields you have in your excel, but for the incremental load, you could maybe do something on maxid or date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make date as a variable where it takes getdate()-7&amp;nbsp; and then only load data where createdate &amp;gt; vLastWeekData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could do this on an ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOH - Didnt read that you had recordnumber/recorddate - But then it should be possible to avoid duplicates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493862#M184734</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493863#M184735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Det kan godt være mit engelske ikke er så godt, så du får den lige på dansk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeg har nogle data fra et excelark hvoraf jeg filtrere de 100 ældste sager fra.&lt;/P&gt;&lt;P&gt;Så vil jeg godt gemme QVW filen og så næste gang jeg loader excelfilen er der flere data + de samme som sidst&lt;BR /&gt;d.v.s. så overskriver jeg jo de "100 gamle".&lt;/P&gt;&lt;P&gt;Efter at have loaded nye data plus de gamle skal jeg filtrere de 100 ældste, - men det må ikke være de samme som de forrige.&lt;/P&gt;&lt;P&gt;Så det skal nok være noget med et incremental load og muligheden for at sette et flag på dem som er brugt tidligere.&lt;/P&gt;&lt;P&gt;Regnearket har ikke unikke post som ID eller et datostempel desværre, - måske en umulig opgave.&lt;/P&gt;&lt;P&gt;Jeg må se at få data fra en database istedet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Det er vel ikke helt korrekt at skrive på dansk her - findes der ikke et dansk forum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493863#M184735</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493864#M184736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order not to load duplicate values you might use a WHERE NOT EXISTS(RECORDNUMBER)&amp;nbsp; This is if RecordNumber works as a PK. If not, you can use RecordDate..&amp;nbsp; Other posibility could be storing in a variable (vDate) always the first day of the week, so you can use something like:&lt;/P&gt;&lt;P&gt;LOAD * FROM XXX&lt;/P&gt;&lt;P&gt;WHERE RecordDate&amp;gt;= $(vDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 100 oldest values, yes, you can use a variable to flag previously oldest records. Once you get this, you can sort your table and extract the 100 oldest values that are not flagged.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493864#M184736</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493865#M184737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ho Soren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have many ways to do it :&lt;/P&gt;&lt;P&gt;- Load file by increment : load the recorddate (if it is relevant) according to the week you want to load (WHERE week(recorddate) = week(today())&lt;/P&gt;&lt;P&gt;- Use the WHILE NOT EXISTS(Recordid). You don't have to worry about date with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 100 oldest record, use recno() to give a numbner to your new records from the week and load it by recorddate ascending. Number from 1 to 100 will give you the 100 oldest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493865#M184737</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493866#M184738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your workthru - but my problem is af the first load I find the 100 oldest by setting a flag, - then&lt;/P&gt;&lt;P&gt;I do a incremental load, and that overwrites the flag set to the 100 oldest???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493866#M184738</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: 100 oldest records</title>
      <link>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493867#M184739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m sure there will be better ways to do this, but maeby you can try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1º Create a sorted resident table where you load all the fields that are currently not flagged.&lt;/P&gt;&lt;P&gt;2º While creating this new table you can add the Flag field and flag only the 100 oldest values (rowno() should work)&lt;/P&gt;&lt;P&gt;3º Concatenate the original table with the new one so you can use the Where not Exists (PK)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/100-oldest-records/m-p/493867#M184739</guid>
      <dc:creator />
      <dc:date>2013-10-21T07:53:33Z</dc:date>
    </item>
  </channel>
</rss>

