<?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: Issue with dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821634#M67367</link>
    <description>&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;Thank you both!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 07:34:59 GMT</pubDate>
    <dc:creator>Dud-As</dc:creator>
    <dc:date>2021-07-13T07:34:59Z</dc:date>
    <item>
      <title>Issue with dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821397#M67333</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have an Excel file with the following data:&lt;BR /&gt;-User Id&lt;BR /&gt;-Visit Date&lt;BR /&gt;-Visit Type (It is a number, with values from 1 to 5)&lt;/P&gt;&lt;P&gt;I need to get the one record for each user, for each type of visit and with the second most recent date (not the most recent visit, the previous one).&lt;/P&gt;&lt;P&gt;If I have the following data:&lt;BR /&gt;UserId VisitDate VisitType&lt;BR /&gt;1000 12/07/2021 1&lt;BR /&gt;1000 11/07/2021 2&lt;BR /&gt;1000 10/07/2021 1&lt;BR /&gt;1000 09/07/2021 2&lt;/P&gt;&lt;P&gt;I need as a result only:&lt;/P&gt;&lt;P&gt;1000 10/07/2021 1&lt;BR /&gt;1000 09/07/2021 2&lt;/P&gt;&lt;P&gt;How can I do this with QLIK?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 11:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821397#M67333</guid>
      <dc:creator>Dud-As</dc:creator>
      <dc:date>2021-07-12T11:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821502#M67349</link>
      <description>&lt;P&gt;If you just want to select second last date then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=max(&lt;SPAN&gt;VisitDate&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;,2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;=Firststoredvalue(VisitDate,-2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 16:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821502#M67349</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2021-07-12T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821621#M67365</link>
      <description>&lt;P&gt;Thank you for your quick response!&lt;/P&gt;&lt;P&gt;We have a VisitId for each of those records, would it be possible to know which VisitId is the one of the result =max(VisitDate,2)?&lt;/P&gt;&lt;P&gt;In order to identify the VisitId of the&amp;nbsp; second last date.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 06:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821621#M67365</guid>
      <dc:creator>Dud-As</dc:creator>
      <dc:date>2021-07-13T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821625#M67366</link>
      <description>&lt;P&gt;Use firstsortedvalue() and pass rank value 2 (third parameter) for second most recent date, like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Firststoredvalue( VisitType, -VisitDate&lt;STRONG&gt;, 2&lt;/STRONG&gt;)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 07:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821625#M67366</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-13T07:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821634#M67367</link>
      <description>&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;Thank you both!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 07:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-dates/m-p/1821634#M67367</guid>
      <dc:creator>Dud-As</dc:creator>
      <dc:date>2021-07-13T07:34:59Z</dc:date>
    </item>
  </channel>
</rss>

