<?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 Before load record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211411#M65690</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;I have a little problem when I am loading a table from a file.&lt;/P&gt;&lt;P&gt;I want to the save the value of the old before read record, however regarding a particular code. How is this??, as below example, for code &lt;B&gt;IM2010-1234,&lt;/B&gt; I need to save in "Previous Date" field the value of the last date which belongs to &lt;B&gt;IM2010-1234. i.e.&lt;/B&gt; for the first read it would be empty.&lt;/P&gt;&lt;P&gt;For the second &lt;B&gt;IM2010-1234,&lt;/B&gt; I would use "exists" to check if I read it or not, if YES, then I want to get date 18/05/2009 which is the one from the first one and put it on field "Previous Date" of the second one.&lt;/P&gt;&lt;P&gt;For the third one same (get the last date read it), however move the one from "Previous Date" to "Before Date", and put the last read (from before) in "Previous Date." Got me??&lt;/P&gt;&lt;P&gt;I cannot use function "before" as that is only for the immediate record before.&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;Many Thanks in advance.&lt;/P&gt;&lt;P&gt;Mauricio&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 334pt;" width="446"&gt;&lt;COL style="width: 122pt;" width="163" /&gt;&lt;COL style="width: 62pt;" width="83" /&gt;&lt;COL span="2" style="width: 75pt;" width="100" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt; width: 122pt;" width="163"&gt;CODE&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 62pt;" width="83"&gt;Date&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 75pt;" width="100"&gt;Previous Date&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 75pt;" width="100"&gt;Before Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="39951"&gt;18/05/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-8877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40103"&gt;17/10/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-4444&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40107"&gt;21/10/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2009-3344&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40140"&gt;23/11/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40165"&gt;18/12/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-9999&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40168"&gt;21/12/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2008-9876&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40183"&gt;05/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2008-9877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40184"&gt;06/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-8877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40187"&gt;09/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40191"&gt;13/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2010 00:00:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-14T00:00:31Z</dc:date>
    <item>
      <title>Before load record</title>
      <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211411#M65690</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;I have a little problem when I am loading a table from a file.&lt;/P&gt;&lt;P&gt;I want to the save the value of the old before read record, however regarding a particular code. How is this??, as below example, for code &lt;B&gt;IM2010-1234,&lt;/B&gt; I need to save in "Previous Date" field the value of the last date which belongs to &lt;B&gt;IM2010-1234. i.e.&lt;/B&gt; for the first read it would be empty.&lt;/P&gt;&lt;P&gt;For the second &lt;B&gt;IM2010-1234,&lt;/B&gt; I would use "exists" to check if I read it or not, if YES, then I want to get date 18/05/2009 which is the one from the first one and put it on field "Previous Date" of the second one.&lt;/P&gt;&lt;P&gt;For the third one same (get the last date read it), however move the one from "Previous Date" to "Before Date", and put the last read (from before) in "Previous Date." Got me??&lt;/P&gt;&lt;P&gt;I cannot use function "before" as that is only for the immediate record before.&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;Many Thanks in advance.&lt;/P&gt;&lt;P&gt;Mauricio&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 334pt;" width="446"&gt;&lt;COL style="width: 122pt;" width="163" /&gt;&lt;COL style="width: 62pt;" width="83" /&gt;&lt;COL span="2" style="width: 75pt;" width="100" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="height: 12.75pt; width: 122pt;" width="163"&gt;CODE&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 62pt;" width="83"&gt;Date&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 75pt;" width="100"&gt;Previous Date&lt;/TD&gt;&lt;TD class="xl22" style="border-left: medium none; width: 75pt;" width="100"&gt;Before Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="39951"&gt;18/05/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-8877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40103"&gt;17/10/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-4444&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40107"&gt;21/10/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2009-3344&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40140"&gt;23/11/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40165"&gt;18/12/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-9999&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40168"&gt;21/12/2009&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2008-9876&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40183"&gt;05/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2008-9877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40184"&gt;06/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;IM2010-8877&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40187"&gt;09/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl22" height="17" style="border-top: medium none; height: 12.75pt;"&gt;&lt;B&gt;IM2010-1234&lt;/B&gt;&lt;/TD&gt;&lt;TD align="right" class="xl23" style="border-top: medium none; border-left: medium none;" num="40191"&gt;13/01/2010&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;TD class="xl22" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 00:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211411#M65690</guid>
      <dc:creator />
      <dc:date>2010-01-14T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Before load record</title>
      <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211412#M65691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mauricio,&lt;/P&gt;&lt;P&gt;I would use the 'lookup' function for this (refer to the help file for syntax). this will allow you to get the value of a field in a specific row in a specific tabele. First to calculate the 'Before date' and then to populate 'previous date'. you could use the 'max' function to get the highest previous date for the id. I have not tested this for this particular scenario, but if you play around with it a bit, you can probably figure it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 10:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211412#M65691</guid>
      <dc:creator>happydays1967</dc:creator>
      <dc:date>2010-01-14T10:59:30Z</dc:date>
    </item>
    <item>
      <title>Before load record</title>
      <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211413#M65692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you are loading data sort it by Code, Date Asc and utilize previous() fucntion.&lt;/P&gt;&lt;P&gt;If you explain this bit (I am confused):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the third one same (get the last date read it), however move the one from "Previous Date" to "Before Date", and put the last read (from before) in "Previous Date." Got me??&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;then I can send you an example script.&lt;/P&gt;&lt;P&gt;Karol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 13:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211413#M65692</guid>
      <dc:creator />
      <dc:date>2010-01-14T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Before load record</title>
      <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211414#M65693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Hans,&lt;/P&gt;&lt;P&gt;Mnay thanks for your tip, I will try and check.&lt;/P&gt;&lt;P&gt;Again, many thanks.&lt;/P&gt;&lt;P&gt;Mauriccio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 13:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211414#M65693</guid>
      <dc:creator />
      <dc:date>2010-01-14T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Before load record</title>
      <link>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211415#M65694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Karol,&lt;/P&gt;&lt;P&gt;Yes, I will try that. Actually you have gave me another good idea to do so.&lt;/P&gt;&lt;P&gt;Many thanks again!!!&lt;/P&gt;&lt;P&gt;Mauriccio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 13:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Before-load-record/m-p/211415#M65694</guid>
      <dc:creator />
      <dc:date>2010-01-14T13:52:13Z</dc:date>
    </item>
  </channel>
</rss>

