<?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: LastValue? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LastValue/m-p/809713#M659993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;SET TimestampFormat='MM/DD/YYYY hh:mm:ss[.fff]';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;source:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // replace with load from your excel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Section Name], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Documentation Date &amp;amp; Time], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Element Description], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Response Value- Free text]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="157948" data-objecttype="1" href="http://community.qlik.com/thread/157948"&gt;http://community.qlik.com/thread/157948&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if([Section Name]&amp;lt;&amp;gt;Peek([Section Name]),1,0) as LastFlag &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by [Documentation Date &amp;amp; Time] desc&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table source;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82210_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Mar 2015 10:50:06 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-03-28T10:50:06Z</dc:date>
    <item>
      <title>LastValue?</title>
      <link>https://community.qlik.com/t5/QlikView/LastValue/m-p/809711#M659991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a file I have uploaded into qlikview that can have multiple responses for the same element. I am looking for a way to identify the last entered value - I believe LASTVALUE may be able to identify this for me but I am having trouble with the syntax due to if statements that need to be built into my script as well (this is necessary because there are also multiple elements that need to be distinguished). Any help would be much appreciated it. Below I have included an example of the data (I only want to return the last line) as well as my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="449" style="width: 739px; height: 192px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 18pt; mso-height-source: userset;"&gt;&lt;TD height="24" style="border: 0.5pt solid #ccccff; width: 174pt; height: 18pt; background-color: #666699;" width="232"&gt;&lt;STRONG style="color: #ffffff;"&gt;Section Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #ccccff #ccccff #ccccff white; width: 132pt; background-color: #666699;" width="176"&gt;&lt;STRONG style="color: #ffffff;"&gt;Documentation Date &amp;amp; Time&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #ccccff #ccccff #ccccff white; width: 197pt; background-color: #666699;" width="263"&gt;&lt;STRONG style="color: #ffffff;"&gt;Element Description&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #ccccff #ccccff #ccccff white; width: 363pt; background-color: #666699;" width="484"&gt;&lt;STRONG style="color: #ffffff;"&gt;Response Value- Free text&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/20/2015 10:46:00 PM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/20/2015 11:33:00 PM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Never received pneumococcal vaccine&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/21/2015 12:43:00 AM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Never received pneumococcal vaccine&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/21/2015 02:44:00 AM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/21/2015 02:50:00 AM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Never received pneumococcal vaccine&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/21/2015 03:08:00 AM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/21/2015 08:29:00 AM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;03/25/2015 09:34:00 PM &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;SPAN style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;SPAN style="color: #000000;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 13.5pt; mso-height-source: userset;"&gt;&lt;TD height="18" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: black #ccccff #ccccff; height: 13.5pt; background-color: white;"&gt;&lt;EM style=": ; color: #000000;"&gt;&lt;STRONG&gt;Pneumococcal and Influenza Evaluation&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;EM&gt;&lt;STRONG style="color: #000000;"&gt;03/26/2015 04:19:00 PM &lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; background-color: white;"&gt;&lt;EM&gt;&lt;STRONG style="color: #000000;"&gt;Pneumococcal Vaccine Status&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: black #ccccff #ccccff black; width: 363pt; background-color: white;" width="484"&gt;&lt;EM style=": ; color: #000000;"&gt;&lt;STRONG&gt;Received after age 65 years&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Documentation:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Financial Number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Admit Date &amp;amp; Time]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AdmitDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Person Name- Full]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PatientName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Person Location- Facility (Curr)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Facility&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Person Location- Nurse Unit (Curr)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Unit&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//[Form Description], &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//[Section Name], &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Documentation Date &amp;amp; Time]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Completed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//[Element Description], &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//[Response Value- Free text]&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Influenza Vaccine Status'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FluVaccineStatus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Pneumococcal Vaccine Status' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PnVaccineStatus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Influenza Eligibility' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FluEligibility&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Influenza Not Given Reason vB' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FluContraindications&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Influenza Vaccine Refusal vA' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FluVaccineRefusal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Pneumo Contraindication Reason vD' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PnContraindications&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Pneumococcal Vaccine Refusal' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PnVaccineRefusal&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Element Description]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Reg PN Pneumonia Eligibility' &lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Response Value- Free text]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PnVaccineEligibility&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; [Source\PN &amp;amp; Flu Eval Form Usage.xls]&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;biff&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; [Vaccine Form Documentation$]);&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 19:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastValue/m-p/809711#M659991</guid>
      <dc:creator />
      <dc:date>2015-03-27T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: LastValue?</title>
      <link>https://community.qlik.com/t5/QlikView/LastValue/m-p/809712#M659992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is more than a couple of ways to do this though&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that the data is in descending order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Section Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastValue([Documentation Date &amp;amp; Time]) as [Documentation Date &amp;amp; Time], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Element Description], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastValue([Response Value- Free text]) as [Response Value- Free text]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;group by [Section Name],[Element Description]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;LOAD [Section Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Documentation Date &amp;amp; Time] as [Documentation Date &amp;amp; Time], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Element Description], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Response Value- Free text] as [Response Value- Free text],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo() as Row&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join (temp)&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;max(Row) as Row,&lt;/P&gt;&lt;P&gt;[Element Description],&lt;/P&gt;&lt;P&gt; [Section Name]&lt;/P&gt;&lt;P&gt; Resident temp&lt;/P&gt;&lt;P&gt; group by [Element Description],&lt;/P&gt;&lt;P&gt; [Section Name];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would give you this result&amp;nbsp; &lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Documentation Date &amp;amp; Time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Element Description&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Response Value- Free text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Section Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;3/26/2015 4:19:00 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Pneumococcal Vaccine Status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Received after age 65 years&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Pneumococcal and Influenza Evaluation&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 23:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastValue/m-p/809712#M659992</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-03-27T23:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: LastValue?</title>
      <link>https://community.qlik.com/t5/QlikView/LastValue/m-p/809713#M659993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;SET TimestampFormat='MM/DD/YYYY hh:mm:ss[.fff]';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;source:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // replace with load from your excel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Section Name], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Documentation Date &amp;amp; Time], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Element Description], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Response Value- Free text]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="157948" data-objecttype="1" href="http://community.qlik.com/thread/157948"&gt;http://community.qlik.com/thread/157948&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if([Section Name]&amp;lt;&amp;gt;Peek([Section Name]),1,0) as LastFlag &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident source&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;order by [Documentation Date &amp;amp; Time] desc&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table source;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82210_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 10:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LastValue/m-p/809713#M659993</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-03-28T10:50:06Z</dc:date>
    </item>
  </channel>
</rss>

