<?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 Fetch second last record from date column. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetch-second-last-record-from-date-column/m-p/2080595#M1223990</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp; a data set where I have one date column and other is patient id.User want to show second last date in report.&lt;/P&gt;
&lt;P&gt;I used previous function but it is not working fine.Kindly help me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rupaliqlik_0-1686054173881.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109315iB67C14E85911EB69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rupaliqlik_0-1686054173881.png" alt="rupaliqlik_0-1686054173881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is my code&lt;/P&gt;
&lt;P&gt;[SR Infusion Temp]:&lt;BR /&gt;LOAD &lt;BR /&gt;[Patient ID] ,&lt;BR /&gt;[SR Infusion DOT],&lt;BR /&gt;Peek([SR Infusion DOT],-1) as _commondate&lt;BR /&gt;Resident [SR Infusion]&lt;BR /&gt;order by [Patient ID],[SR Infusion DOT] ASC;&lt;BR /&gt;DROP Table [SR Infusion];&lt;BR /&gt;RENAME Table [SR Infusion Temp] to [SR Infusion];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49799" target="_blank"&gt;@abhijitnalekar&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;A id="link_cb729c0987ad3d_6b006" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_self" aria-label="View Profile of sunny_talwar" aria-describedby="userProfileCard-46628"&gt;&lt;SPAN class="login-bold"&gt;sunny_talwar&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/people/kaushik.solanki?et=watches.email.thread" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.qlik.com/people/kaushik.solanki?et%3Dwatches.email.thread&amp;amp;source=gmail&amp;amp;ust=1650902529548000&amp;amp;usg=AOvVaw1IolBcanrb5d8X4Miz8Yal"&gt;&lt;SPAN class="il"&gt;Kaushik&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Solanki&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 12:25:09 GMT</pubDate>
    <dc:creator>rupaliqlik</dc:creator>
    <dc:date>2023-06-06T12:25:09Z</dc:date>
    <item>
      <title>Fetch second last record from date column.</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-second-last-record-from-date-column/m-p/2080595#M1223990</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp; a data set where I have one date column and other is patient id.User want to show second last date in report.&lt;/P&gt;
&lt;P&gt;I used previous function but it is not working fine.Kindly help me.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rupaliqlik_0-1686054173881.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/109315iB67C14E85911EB69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rupaliqlik_0-1686054173881.png" alt="rupaliqlik_0-1686054173881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is my code&lt;/P&gt;
&lt;P&gt;[SR Infusion Temp]:&lt;BR /&gt;LOAD &lt;BR /&gt;[Patient ID] ,&lt;BR /&gt;[SR Infusion DOT],&lt;BR /&gt;Peek([SR Infusion DOT],-1) as _commondate&lt;BR /&gt;Resident [SR Infusion]&lt;BR /&gt;order by [Patient ID],[SR Infusion DOT] ASC;&lt;BR /&gt;DROP Table [SR Infusion];&lt;BR /&gt;RENAME Table [SR Infusion Temp] to [SR Infusion];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49799" target="_blank"&gt;@abhijitnalekar&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;A id="link_cb729c0987ad3d_6b006" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_self" aria-label="View Profile of sunny_talwar" aria-describedby="userProfileCard-46628"&gt;&lt;SPAN class="login-bold"&gt;sunny_talwar&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/people/kaushik.solanki?et=watches.email.thread" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.qlik.com/people/kaushik.solanki?et%3Dwatches.email.thread&amp;amp;source=gmail&amp;amp;ust=1650902529548000&amp;amp;usg=AOvVaw1IolBcanrb5d8X4Miz8Yal"&gt;&lt;SPAN class="il"&gt;Kaushik&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Solanki&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 12:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-second-last-record-from-date-column/m-p/2080595#M1223990</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2023-06-06T12:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch second last record from date column.</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-second-last-record-from-date-column/m-p/2081253#M1224000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;See if this helps.&lt;/P&gt;
&lt;P&gt;I've put in a set analysis solution and an alternative scripted solution, but basically you should be able to do what you want using the &lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm" target="_self"&gt;FirstSortevalue()&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 15:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-second-last-record-from-date-column/m-p/2081253#M1224000</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2023-06-07T15:58:18Z</dc:date>
    </item>
  </channel>
</rss>

