<?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: How to pick up the second date from the data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25747#M4252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Ticket,Min(CreatedDate) as MinDate&lt;/P&gt;&lt;P&gt;From xyz&lt;/P&gt;&lt;P&gt;Where Createdby='Admin'&lt;/P&gt;&lt;P&gt;Group by Ticket;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;Load Ticket,Max(LastModifiedDate) as MaxDate&lt;/P&gt;&lt;P&gt;From xyz&lt;/P&gt;&lt;P&gt;Where Createdby&amp;lt;&amp;gt;'Admin'&lt;/P&gt;&lt;P&gt;Group by Ticket;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 07:19:50 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2018-01-31T07:19:50Z</dc:date>
    <item>
      <title>How to pick up the second date from the data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25746#M4251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Ticket&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Task&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Created Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Last modified Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Created By&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 10:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 10:15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Admin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 12:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 12:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Agent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; 2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:06&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Agent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 11:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 11:15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Admin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1-Jan-2017 13:00&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1:Jan-2017 13:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Agent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; 2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:06&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Agent&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Admin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2-Jan-2017 10:05&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Agent&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the data is grouped by Ticket, i have to pick the start date and end date from this data.&lt;/P&gt;&lt;P&gt;Start date will be the Created Date (which is created by Admin)&lt;/P&gt;&lt;P&gt;For example, Ticket = 1, the Start Date is 1-Jan-2017 10:00 (Task created by Admin)&lt;/P&gt;&lt;P&gt;End date will be the Last Modified Date (The Last modified date after the first task (Admin task) should be considered).&lt;/P&gt;&lt;P&gt;For example, Ticket = 1, The end date is 1-Jan-2017 12:05.&lt;/P&gt;&lt;P&gt;My question is, How to pick up the last modified date from the date which is the task created (Task after the admin task, i.e., task created by some agent) after the first task (Which is created by admin)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25746#M4251</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2018-01-31T07:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick up the second date from the data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25747#M4252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Ticket,Min(CreatedDate) as MinDate&lt;/P&gt;&lt;P&gt;From xyz&lt;/P&gt;&lt;P&gt;Where Createdby='Admin'&lt;/P&gt;&lt;P&gt;Group by Ticket;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;Load Ticket,Max(LastModifiedDate) as MaxDate&lt;/P&gt;&lt;P&gt;From xyz&lt;/P&gt;&lt;P&gt;Where Createdby&amp;lt;&amp;gt;'Admin'&lt;/P&gt;&lt;P&gt;Group by Ticket;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25747#M4252</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-01-31T07:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick up the second date from the data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25748#M4253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If i use the below code, then it will take the last row date in the last modified date field group by Ticket right,&lt;/P&gt;&lt;P&gt;But i want the row after the admin task date to be picked up in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;Load Ticket,Max(LastModifiedDate) as MaxDate&lt;/P&gt;&lt;P&gt;From xyz&lt;/P&gt;&lt;P&gt;Where Createdby&amp;lt;&amp;gt;'Admin'&lt;/P&gt;&lt;P&gt;Group by Ticket;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 09:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25748#M4253</guid>
      <dc:creator>udaya_kumar</dc:creator>
      <dc:date>2018-01-31T09:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pick up the second date from the data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25749#M4254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats fine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such case you can use the Min function, which will take the immediate next row after Admin row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Left join&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Ticket,Min(LastModifiedDate) as NextDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From xyz&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Createdby&amp;lt;&amp;gt;'Admin'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by Ticket;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 09:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pick-up-the-second-date-from-the-data/m-p/25749#M4254</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-01-31T09:34:20Z</dc:date>
    </item>
  </channel>
</rss>

