<?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 gettings date from record above in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217197#M70442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;I'm trying to do something similar to your example above. Do you have a working example by any chance?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Aug 2010 21:46:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-13T21:46:26Z</dc:date>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217194#M70439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have this table:&lt;/P&gt;&lt;P&gt;unique key, firstname, lastname, birthdate, FileNumber&lt;/P&gt;&lt;P&gt;21, M. , Carlo, 19700101, 1&lt;/P&gt;&lt;P&gt;21, M. , Carlo, 0 , 2&lt;/P&gt;&lt;P&gt;21, M.J. Carlo, 19850101, 3&lt;/P&gt;&lt;P&gt;21, M.J, Carlo, 0 , 4&lt;/P&gt;&lt;P&gt;21, W.J. Carlo, 19890101, 5&lt;/P&gt;&lt;P&gt;21, W.J, Carlo, 0 , 6&lt;/P&gt;&lt;P&gt;21, W.J, Carlo, 19990101 , 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an additional expression, i want for record 2 and 4 a birthday .. based on the 100% match of the firstname, lastname and unique key.&lt;/P&gt;&lt;P&gt;Record 6 shouldn't have a birthdate, because there is a conflict (more then one result)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 22:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217194#M70439</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-04-17T22:11:18Z</dc:date>
    </item>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217195#M70440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting a date from the record above is pretty simple - you need to compare your three keys and if they match, use peek(Date). Something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;load&lt;BR /&gt; Key,&lt;BR /&gt; FirstName,&lt;BR /&gt; LastName,&lt;BR /&gt; if(previous(Key) =Key and previous(FirstName) = FirstName and previous(LastName)=LastName and Date=0, peek(Date), Date) as Date&lt;BR /&gt;from ...&lt;BR /&gt;order by&lt;BR /&gt; Key, FirstName, LastName, Date&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As far as your other condition (two different dates) - you'll have to come up with some data validation logic. If you can't validate your data prior to loading it into QlikView, you can aggregate the table and find out all the people that have more than one non-zero Date, and then flag them one way or another...&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Apr 2010 23:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217195#M70440</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-17T23:59:44Z</dc:date>
    </item>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217196#M70441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply .. i know the previous and peek option .. i has really asking for an expression solution not a load solution. If there is no other way, then i could use the previous/peek location,&lt;/P&gt;&lt;P&gt;if i have two different dates. then it shouldnt replace the 0 birthdate with the peek(birthdate).&lt;/P&gt;&lt;P&gt;Thats basicly the validation logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 20:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217196#M70441</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-04-18T20:18:32Z</dc:date>
    </item>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217197#M70442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;I'm trying to do something similar to your example above. Do you have a working example by any chance?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2010 21:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217197#M70442</guid>
      <dc:creator />
      <dc:date>2010-08-13T21:46:26Z</dc:date>
    </item>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217198#M70443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope .. i dont have a solution for this &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 07:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217198#M70443</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2010-08-14T07:57:37Z</dc:date>
    </item>
    <item>
      <title>gettings date from record above</title>
      <link>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217199#M70444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;please see an attached example with 2 ways of solving the problem in a load script - one is using previous() and peek() and another is using Mapping.&lt;/P&gt;&lt;P&gt;Amien - this problem needs to be solved in the script and not in chart expressions, because it has to do with poor data quality. As a "best practice", we try to cleanse data at the load time and not in the run time, whenever possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enjoy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 20:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/gettings-date-from-record-above/m-p/217199#M70444</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-08-14T20:47:51Z</dc:date>
    </item>
  </channel>
</rss>

