<?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 2 rows statuses and decide the final status in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-check-2-rows-statuses-and-decide-the-final-status/m-p/2136627#M92367</link>
    <description>&lt;P&gt;You can create a new field "FINAL_STATUS", and then you can filter on it if you want to keep only those rows:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Load *, If(Previous(CODE)=CODE And Previous(STATUS)='IDENTIFICATION_COMPLETED',Pick(Match(STATUS,'COMPLETED','PENDING_MANUAL_REVIEW'),'Automatic Approved','Manual check required'),Null()) as FINAL_STATUS Resident MySourceTable Order By CODE,CREATION_TIME;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 09:51:09 GMT</pubDate>
    <dc:creator>vincent_ardiet_</dc:creator>
    <dc:date>2023-11-10T09:51:09Z</dc:date>
    <item>
      <title>how to check 2 rows statuses and decide the final status</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-check-2-rows-statuses-and-decide-the-final-status/m-p/2135894#M92325</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have multiple statuses for a single code with a very minor time difference.&lt;/P&gt;
&lt;P&gt;now i am trying to implement below logic.&lt;/P&gt;
&lt;P&gt;1. if the code status is reached to 'COMPLETED' and before this status if the code status is&amp;nbsp;'IDENTIFICATION_COMPLETED'&lt;/P&gt;
&lt;P&gt;then status should be 'Automatic Approved'.&lt;/P&gt;
&lt;P&gt;2. if the code status is reached to 'PENDING_MANUAL_REVIEW' and before this, if the code status is&amp;nbsp;'IDENTIFICATION_COMPLETED'&amp;nbsp; then status should be like 'Manual check required'.&lt;/P&gt;
&lt;P&gt;3. and we want only the one record to each code, that record must be with the latest status of the code. considering the max time.(I need to join this script with an other main table with code as key field)&lt;/P&gt;
&lt;P&gt;in other way, if the code statuses are changed from&amp;nbsp;'IDENTIFICATION_COMPLETED' to 'COMPLETED' --&amp;gt; then status as 'Auto Approved'.&lt;/P&gt;
&lt;P&gt;if the code statuses are changed from&amp;nbsp;'IDENTIFICATION_COMPLETED' to 'PENDING_MANUAL_REVIEW' --&amp;gt; then status as 'Manual check required'.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhasharadh_0-1699455083816.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119579i4669A3D4DAE85126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhasharadh_0-1699455083816.png" alt="dhasharadh_0-1699455083816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 15:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-check-2-rows-statuses-and-decide-the-final-status/m-p/2135894#M92325</guid>
      <dc:creator>dhasharadh</dc:creator>
      <dc:date>2023-11-08T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to check 2 rows statuses and decide the final status</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-check-2-rows-statuses-and-decide-the-final-status/m-p/2136627#M92367</link>
      <description>&lt;P&gt;You can create a new field "FINAL_STATUS", and then you can filter on it if you want to keep only those rows:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Load *, If(Previous(CODE)=CODE And Previous(STATUS)='IDENTIFICATION_COMPLETED',Pick(Match(STATUS,'COMPLETED','PENDING_MANUAL_REVIEW'),'Automatic Approved','Manual check required'),Null()) as FINAL_STATUS Resident MySourceTable Order By CODE,CREATION_TIME;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-check-2-rows-statuses-and-decide-the-final-status/m-p/2136627#M92367</guid>
      <dc:creator>vincent_ardiet_</dc:creator>
      <dc:date>2023-11-10T09:51:09Z</dc:date>
    </item>
  </channel>
</rss>

