<?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: how to check two fields in  two different records (recursion) ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296307#M109883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;attach is an example of what you asked for&lt;/P&gt;&lt;P&gt;the logic in the script is&lt;/P&gt;&lt;P&gt;creating the previous step key by &lt;/P&gt;&lt;P&gt;concatanting the custom header after removing the last two chars to the description id&lt;/P&gt;&lt;P&gt;then join to theis table the original table &lt;/P&gt;&lt;P&gt;where the key will be the original custom header and desc id&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 07:53:49 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2011-07-21T07:53:49Z</dc:date>
    <item>
      <title>how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296306#M109882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;i have a problem and want your help ,please &lt;/P&gt;&lt;P&gt;i have this data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 95%; border-width: 1px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Main&amp;nbsp; header &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Custom header&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;description&amp;nbsp; Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;date&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-C&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-B&lt;/TD&gt;&lt;TD&gt;HP&lt;/TD&gt;&lt;TD&gt;1/10/20110 06:49:47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-B&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-B-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;5/12/2010 02:58:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-E&lt;/TD&gt;&lt;TD&gt;RC&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-A-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;5/12/2010 02:58:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A&lt;/TD&gt;&lt;TD&gt;BM&lt;/TD&gt;&lt;TD&gt;3/10/2010 12:17:49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-C&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-E&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-F&lt;/TD&gt;&lt;TD&gt;SC&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A&lt;/TD&gt;&lt;TD&gt;FB&lt;/TD&gt;&lt;TD&gt;1/10/2010 06:49:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-B&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-D&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A&lt;/TD&gt;&lt;TD&gt;HP&lt;/TD&gt;&lt;TD&gt;30/9/2010 08:17:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-B-E-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;10/1/2011 02:55:31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-C&lt;/TD&gt;&lt;TD&gt;RC&lt;/TD&gt;&lt;TD&gt;12/10/2010 04:55:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A-D&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10-19168&lt;/TD&gt;&lt;TD&gt;10-19168-A-A-A-A&lt;/TD&gt;&lt;TD&gt;CM&lt;/TD&gt;&lt;TD&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which explain one case of the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of the data is =&amp;gt; each main header has many custom header&amp;nbsp; =&amp;gt; for each &lt;/P&gt;&lt;P&gt;custom header has description id "description id is not unique " and date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is to find the&lt;SPAN style="color: #993366;"&gt; real date&lt;/SPAN&gt; for each custom header by using this algorithm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-for each custom header has the same main header i'll check the&lt;SPAN style="color: #ff00ff;"&gt; description id &lt;/SPAN&gt; of the&lt;SPAN style="color: #ff0000;"&gt; current &lt;/SPAN&gt;custom header and &lt;SPAN style="color: #ff0000;"&gt;one step back&lt;/SPAN&gt; custom header not the previous to be clear for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1- current custom header =&amp;gt; 10-19168-A-A-A-B , the one step back is =&amp;gt; 10-19168-A-A-A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- current custom header =&amp;gt; 10-19168-A-A-A-B-E-A , the one step back is =&amp;gt; 10-19168-A-A-A-B-E&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " one step back mean &lt;SPAN style="color: #0000ff;"&gt;removing last '-' and the letter after it&lt;/SPAN&gt; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then if the description id &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1- &lt;SPAN style="color: #ff0000;"&gt;diffrent &lt;/SPAN&gt;=&amp;gt; then the &lt;SPAN style="color: #ff00ff;"&gt;real date&lt;/SPAN&gt; of the current custom header&amp;nbsp; will be&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp; the date of current&lt;/SPAN&gt; custom header &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- &lt;SPAN style="color: #ff0000;"&gt;same&lt;/SPAN&gt; =&amp;gt; then the&lt;SPAN style="color: #ff00ff;"&gt; real date&lt;/SPAN&gt; of the current custom header will be&lt;SPAN style="color: #ff00ff;"&gt;&amp;nbsp; the real date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;of&amp;nbsp; the&lt;SPAN style="color: #ff00ff;"&gt; one step back&lt;/SPAN&gt; custom header "&lt;SPAN style="color: #ff0000;"&gt;which has been found with the same algorithm&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the final result will be the following table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="2" cellpadding="3" cellspacing="0" class="jiveBorder" style="cursor: default; border-collapse: collapse; border: inherit; width: 100%; border-width: 2px; border-color: #000000; border-style: solid; margin: -1px;"&gt;&lt;TBODY style="border-style: solid;"&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Main&amp;nbsp; header&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Custom header&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;description&amp;nbsp; Id&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;date&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit; background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Real&amp;nbsp; Date &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-C&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-B&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;HP&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;1/10/20110 06:49:47&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;30/9/2010 08:17:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-B&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-B-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;5/12/2010 02:58:00&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-E&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;RC&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-A-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;5/12/2010 02:58:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;BM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/10/2010 12:17:49&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/10/2010 12:17:49&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-C&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-E&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-F&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;SC&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;FB&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;1/10/2010 06:49:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;1/10/2010 06:49:16&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-B&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-D&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;23/11/2010 03:05:16&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;HP&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;30/9/2010 08:17:43&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;30/9/2010 08:17:43&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-B-E-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10/1/2011 02:55:31&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/140/2010 04:54:13&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-C&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;RC&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:55:15&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:55:15&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A-D&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;3/12/2010 07:37:18&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit; border-color: inherit; border-width: inherit; border-style: solid;"&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;10-19168-A-A-A-A&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;CM&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;TD style="border-collapse: collapse; cursor: text; border-color: inherit; border: inherit;"&gt;12/10/2010 04:53:40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 07:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296306#M109882</guid>
      <dc:creator />
      <dc:date>2011-07-21T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296307#M109883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;attach is an example of what you asked for&lt;/P&gt;&lt;P&gt;the logic in the script is&lt;/P&gt;&lt;P&gt;creating the previous step key by &lt;/P&gt;&lt;P&gt;concatanting the custom header after removing the last two chars to the description id&lt;/P&gt;&lt;P&gt;then join to theis table the original table &lt;/P&gt;&lt;P&gt;where the key will be the original custom header and desc id&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 07:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296307#M109883</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-21T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296308#M109884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for you help but the result is not exactly what i want &lt;/P&gt;&lt;P&gt;in the attched photo i pointed to the records which have the problem &lt;/P&gt;&lt;P&gt;to be clear in this record i need the &lt;SPAN style="color: #0000ff;"&gt;real date&lt;/SPAN&gt; is to be tha same as the &lt;SPAN style="color: #0000ff;"&gt;real date&lt;/SPAN&gt; of the one step back "&lt;SPAN style="color: #ff0000;"&gt;Not the date&lt;/SPAN&gt; " so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10-19168&amp;nbsp;&amp;nbsp; 10-19168-A-A-A-A-A-A&amp;nbsp;&amp;nbsp;&amp;nbsp; CM&amp;nbsp;&amp;nbsp; 05/12/2010 02:58&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;03/12/2010 07:37&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt; &lt;SPAN style="color: #993300;"&gt;should be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; 10-19168&amp;nbsp;&amp;nbsp; 10-19168-A-A-A-A-A-A&amp;nbsp;&amp;nbsp;&amp;nbsp; CM&amp;nbsp;&amp;nbsp; 05/12/2010 02:58&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;12/10/2010 04:53&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;10-19168&amp;nbsp;&amp;nbsp; 10-19168-A-A-A-B-E-A&amp;nbsp;&amp;nbsp; CM&amp;nbsp;&amp;nbsp; 10/01/2011 02:55&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;23/11/2010 03:05&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;should be&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;10-19168&amp;nbsp;&amp;nbsp; 10-19168-A-A-A-B-E-A&amp;nbsp;&amp;nbsp; CM&amp;nbsp;&amp;nbsp; 10/01/2011 02:55&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;12/10/2010 04:54&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 08:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296308#M109884</guid>
      <dc:creator />
      <dc:date>2011-07-21T08:37:12Z</dc:date>
    </item>
    <item>
      <title>how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296309#M109885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any solution please??&lt;/P&gt;&lt;P&gt;i have the same problem also!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 12:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296309#M109885</guid>
      <dc:creator />
      <dc:date>2011-07-21T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296310#M109886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;last try ,&lt;/P&gt;&lt;P&gt;i change the algoritm a little bit&lt;/P&gt;&lt;P&gt;what the script does is creating two keys :&lt;/P&gt;&lt;P&gt;the current key, prev stage key,sorting the table&lt;/P&gt;&lt;P&gt;then it finds the index of the record of the previous key,&lt;/P&gt;&lt;P&gt;and peeking the date if Previous Stage is Exists&lt;/P&gt;&lt;P&gt;on the example Data it works&lt;/P&gt;&lt;P&gt;now you shuld test it on large databut it should work&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 08:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296310#M109886</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-24T08:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296311#M109887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm trying your last solution on my DB &lt;/P&gt;&lt;P&gt;but after finishing loading the script it gives me the following message &lt;/P&gt;&lt;P&gt;"Execution of script fgailed.Reload old data?"&lt;/P&gt;&lt;P&gt;i don't know what's the problem and how to solve such an issue&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;before your script i made a load for only 2 tables and there's joining between them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 09:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296311#M109887</guid>
      <dc:creator />
      <dc:date>2011-07-25T09:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296312#M109888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;can you upload &lt;/P&gt;&lt;P&gt;a sample file or just your script&lt;/P&gt;&lt;P&gt;i'll try it on sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 10:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296312#M109888</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-07-25T10:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296313#M109889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MoveTicketHistory:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;resource_no&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;resource_no&lt;/SPAN&gt;,2) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ResourceNo&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;move_ticket&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt; date_created&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt; cust_move_ticket&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;len&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;)-2) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;StepBack&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;Mainmoveticket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #0000ff;"&gt;qvd&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Inner Join &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt; Timestamp&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;MinString&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;date_created&lt;/SPAN&gt;)) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt; [Creation Date]&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; MoveTicketHistory&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Group by&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTemp:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;load&lt;/STRONG&gt; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;ResourceNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt; Key&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;ResourceNo&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;StepBack&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt; as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PrevKey&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Resident &lt;/SPAN&gt;MoveTicketHistory&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;order by&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ResourceNo&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;cust_move_ticket&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;drop&lt;/STRONG&gt; table&lt;/SPAN&gt; MoveTicketHistory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LOAd&lt;/STRONG&gt;&lt;/SPAN&gt; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;FieldIndex&lt;/SPAN&gt;('Key',&lt;SPAN style="color: #800000;"&gt;PrevKey&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;index&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff;"&gt; if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;FieldIndex&lt;/SPAN&gt;('Key',&lt;SPAN style="color: #800000;"&gt;PrevKey&lt;/SPAN&gt;)=0,&lt;SPAN style="color: #800000;"&gt;[Creation Date]&lt;/SPAN&gt;,Peek('NewDate',&lt;SPAN style="color: #0000ff;"&gt;FieldIndex&lt;/SPAN&gt;('Key',&lt;SPAN style="color: #800000;"&gt;PrevKey&lt;/SPAN&gt;)-1))&lt;SPAN style="color: #0000ff;"&gt; as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NewDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;resident&lt;/SPAN&gt; DataTemp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;drop &lt;/STRONG&gt;Table&lt;/SPAN&gt; DataTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 11:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296313#M109889</guid>
      <dc:creator />
      <dc:date>2011-07-25T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to check two fields in  two different records (recursion) ??</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296314#M109890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Create a field with right trimming the last 2 characters of Custom Header Field and name it Main Header field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then load a new resident table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainHeaderTable:&lt;/P&gt;&lt;P&gt;load Main Header,date resident "HeaderTable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then join this new MainHeaderTable with HeaderTable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's all i think &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 11:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-check-two-fields-in-two-different-records-recursion/m-p/296314#M109890</guid>
      <dc:creator />
      <dc:date>2011-07-25T11:40:03Z</dc:date>
    </item>
  </channel>
</rss>

