<?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: Status based on latest date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389365#M799492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try the following script in the load editor; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (FechaTable) LOAD &lt;/P&gt;&lt;P&gt;MAX(Fecha Consulta) AS [&lt;SPAN style="font-size: 13.3333px;"&gt;Fecha Consulta],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1 AS [Last Row]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT [FechaTable];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then you could do a resident load and where the column FECHA is empty and the value of [Last Row]&amp;nbsp; = 1 there you can use the [Fecha Consulta] instead of FECHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Table: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*, &lt;/P&gt;&lt;P&gt;IF(FECHA &amp;gt; 0 , FECHA, IF([Last Row] = 1, [Fecha Consulta],NULL())) AS FECHA_new&lt;/P&gt;&lt;P&gt;RESIDENT FechaTable; &lt;/P&gt;&lt;P&gt;DROP FIELD FECHA; &lt;/P&gt;&lt;P&gt;RENAME FIELD FECHA_new TO FECHA; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 14:39:25 GMT</pubDate>
    <dc:creator>avkeep01</dc:creator>
    <dc:date>2017-11-28T14:39:25Z</dc:date>
    <item>
      <title>Status based on latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389364#M799491</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;&lt;/P&gt;&lt;P&gt;I have data which contains the Key_id having the different status. once the keyid moved from "En Process" state to any other state, date is being populated in FECHA column. as shown below&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="184918" alt="Data1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184918_Data1.PNG" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But sometimes the same key_id is still "En Process" State through out the month. (This report contains weekly data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="184931" alt="Data2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/184931_Data2.PNG" style="height: 69px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I have to create a chart which will show the final status of key_id on that particular month. I was able to flag the key_id with all the status based on FECHA column except "En Process" state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="184932" alt="Chart.PNG" class="jive-image image-3" height="195" src="https://community.qlik.com/legacyfs/online/184932_Chart.PNG" style="height: 194.746px; width: 272px;" width="272" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one please help me to get the final status of each key_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the 4 weeks data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389364#M799491</guid>
      <dc:creator>gayatri7</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Status based on latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389365#M799492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try the following script in the load editor; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (FechaTable) LOAD &lt;/P&gt;&lt;P&gt;MAX(Fecha Consulta) AS [&lt;SPAN style="font-size: 13.3333px;"&gt;Fecha Consulta],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1 AS [Last Row]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RESIDENT [FechaTable];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then you could do a resident load and where the column FECHA is empty and the value of [Last Row]&amp;nbsp; = 1 there you can use the [Fecha Consulta] instead of FECHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;Table: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*, &lt;/P&gt;&lt;P&gt;IF(FECHA &amp;gt; 0 , FECHA, IF([Last Row] = 1, [Fecha Consulta],NULL())) AS FECHA_new&lt;/P&gt;&lt;P&gt;RESIDENT FechaTable; &lt;/P&gt;&lt;P&gt;DROP FIELD FECHA; &lt;/P&gt;&lt;P&gt;RENAME FIELD FECHA_new TO FECHA; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389365#M799492</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2017-11-28T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Status based on latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389366#M799493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!! Let me try&amp;nbsp; that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Status-based-on-latest-date/m-p/1389366#M799493</guid>
      <dc:creator>gayatri7</dc:creator>
      <dc:date>2017-11-28T17:51:30Z</dc:date>
    </item>
  </channel>
</rss>

