<?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: latest status based on  a date in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774543#M1920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to include a set analysis, maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue({&amp;lt; Field = {'*'}&amp;gt;} Field, -Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2015 13:44:41 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-03-10T13:44:41Z</dc:date>
    <item>
      <title>latest status based on  a date</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774540#M1917</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 am new to Qlikview, wonder if someone can help me with expressions in Qlikview- &lt;/P&gt;&lt;P&gt;See below an applicant history where row number represents the sequence of activities happened to that application. I need to identify the latest status (SA_TO_STATUS) on a date. For e.g. the status of this application&amp;nbsp; on 17/12/2012 is PGIOFFER which is the latest status to that date. Status on 31/12/2012 is PGIACCO, on 14/12/2012 is PGIOFFER. In SQL I would do&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt; select&amp;nbsp; sa_to_status where sa_to_created_date=(select max(&lt;SPAN style="color: #1f497d; font-size: 13.3333330154419px;"&gt;sa_to_created_date&lt;/SPAN&gt;) where &lt;SPAN style="color: #1f497d; font-size: 13.3333330154419px;"&gt;sa_to_created_date&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333330154419px;"&gt;input_date &lt;/SPAN&gt;AND sa_to_status IS NOT NULL). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can we do this in qlikview?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks a lot!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80331_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 10:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774540#M1917</guid>
      <dc:creator />
      <dc:date>2015-03-10T10:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: latest status based on  a date</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774541#M1918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on the function firtssortedvalue().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 11:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774541#M1918</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-10T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: latest status based on  a date</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774542#M1919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Thanks Marcus. This works if no null values in STATUS field. I am not sure how I can ignore those null records. For 20/12/2012, I would like to ignore any null entries and show PGIOFFER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774542#M1919</guid>
      <dc:creator />
      <dc:date>2015-03-10T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: latest status based on  a date</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774543#M1920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to include a set analysis, maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue({&amp;lt; Field = {'*'}&amp;gt;} Field, -Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774543#M1920</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-10T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: latest status based on  a date</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774544#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow!&amp;nbsp; That works!!! &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Excellent!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/latest-status-based-on-a-date/m-p/774544#M1921</guid>
      <dc:creator />
      <dc:date>2015-03-10T13:51:28Z</dc:date>
    </item>
  </channel>
</rss>

