<?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: Search records by reference date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934015#M649272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, I couldn't get your script to work... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hint: I'm a total newbie on QlikView...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 10:44:41 GMT</pubDate>
    <dc:creator>hansdevr</dc:creator>
    <dc:date>2015-08-17T10:44:41Z</dc:date>
    <item>
      <title>Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934010#M649267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working in the database of an insurance company, using QlikView. Each time a payment is done in a damage, the initial reserve is lowered by that amount, and a new line is added in the reserve data table. That line is numbered (simply, starting by 1) and the "ranking" field is modified in the previous records. The amount of reserve in the line with the lowest ranking, is the status of the current reserve for that damage. Here is a simplified example, showing 4 records in the reserve database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;File_number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Reserve_line_number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ranking&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Creation_date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Reserve_amount&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16/01/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;14200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;09/02/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;100001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;19/03/2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, what I would like to do, is make a view of the total reserve for a given reference date. This date does NOT need to be present in the Reserve_amount field! So let's assume the reference date is 11/02/2015 (dd/mm/yyyy). How do I include totalize all records in my table that are before or ON that reference date? And remember, for each file_number, I need only ONE record, and ONE amount, in my example that woud lead to reserve_line_number = 3, Ranking = 2, Creation_date = 09/02/2015, and Reserve_amount (for that file only) = € 12,600. It is only this line I need to totalize for all File_numbers.. I've really been busting my brain over this...&lt;/P&gt;&lt;P&gt;Excuse my poor English; it's not my native language.. I hope I made my case clear....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 06:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934010#M649267</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-17T06:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934011#M649268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the script you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;MyTab:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; File_number, Reserve_line_number, Ranking, Creation_date, Reserve_amount&lt;BR /&gt; 100001, 1, 4, 05/01/2015, 15000 &lt;BR /&gt; 100001, 2, 3, 16/01/2015, 14200 &lt;BR /&gt; 100001, 3, 2, 09/02/2015, 12600 &lt;BR /&gt; 100001, 4, 1, 19/03/2015, 9600 &lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;File_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Reserve_line_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MaxLine&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; MyTab &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Creation_date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= '11/02/2015' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;By&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;File_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; FinalTab:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; MyTab &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Reserve_line_number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MaxLine&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; MyTab; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;let me know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 09:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934011#M649268</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-08-17T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934012#M649269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HIC makes some suggestions on how to handle this scenario here: &lt;A href="https://community.qlik.com/qlik-blogpost/2928"&gt;How to populate a sparsely populated field&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 09:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934012#M649269</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-17T09:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934013#M649270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at my own question, I realised I did something wrong. Both answers are assuming I will load ONLY the records that are below a given, fixed reference date. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But of course, I will be loading ALL records, up to today. I need to find a way to limit my records (in a worksheet in designer) to the ones I described in the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I posted this in the wrong topic forum? Or are you willing to show me how to do this in Designer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you are thanked for this solution, which - no doubt - will be useful for other reserve calculations! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 10:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934013#M649270</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-17T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934014#M649271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, thanks for your hint, which indeed proved useful (in a load script)!&lt;/P&gt;&lt;P&gt;Please see answer to previous poster. I'm afraid I'm looking for a way to achieve this goal in designer, using a standard worksheet object...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 10:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934014#M649271</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-17T10:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934015#M649272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, I couldn't get your script to work... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hint: I'm a total newbie on QlikView...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 10:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934015#M649272</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-17T10:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934016#M649273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, after having had a second glance at your suggestion, I must say this might work indeed. It's a matter of populating a table with missing dates... I will try this within our own situation and keep you updated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934016#M649273</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-17T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search records by reference date</title>
      <link>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934017#M649274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid that I couldn't get this trick to work properly. In my table there are many fields, one of them is the nr. of the customer file. For each customer file, this trick of adding empty records (by date field) should be repeated, which does not happen. Most probably I am doing something wrong, but what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-records-by-reference-date/m-p/934017#M649274</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-08-20T05:45:08Z</dc:date>
    </item>
  </channel>
</rss>

