<?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 get the first or last instance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548696#M684038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im sorry for confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four fields to use for this script.&lt;/P&gt;&lt;P&gt;1. Ticket&lt;/P&gt;&lt;P&gt;2 Assignee&lt;/P&gt;&lt;P&gt;3. Date Opened&lt;/P&gt;&lt;P&gt;4. Transferred Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query 1: My dimension will be the Assignee, and im going to count the tickets transferred in first instance. Ticket number may have duplicates depends on how many times it was transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query 2: Same as with Query 1 but this time im going to get the second instance of transferred date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 09:33:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-23T09:33:09Z</dc:date>
    <item>
      <title>How to get the first or last instance</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548694#M684036</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;May I ask how to get the first or second or last instance for the query below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like get the first and second instance of Transferre Date per Ticket. But as you can see in the attached image, most of the ticket number have duplicates because one ticket can transfer many times. My problem is how will I be able to get the first and second instance of transferred date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 06:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548694#M684036</guid>
      <dc:creator />
      <dc:date>2014-01-22T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first or last instance</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548695#M684037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use "Ticket" as dimension in a chart, and your "Transferred Date" is correctly interpreted as a date, then you can simply use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Min([Transferred Date]))&lt;/P&gt;&lt;P&gt;for the first "Transferred Date" for that ticket. And you can use &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date(Min([Transferred Date], 2))&lt;/P&gt;&lt;P&gt;for the second "Transferred Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548695#M684037</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-23T09:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first or last instance</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548696#M684038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im sorry for confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four fields to use for this script.&lt;/P&gt;&lt;P&gt;1. Ticket&lt;/P&gt;&lt;P&gt;2 Assignee&lt;/P&gt;&lt;P&gt;3. Date Opened&lt;/P&gt;&lt;P&gt;4. Transferred Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query 1: My dimension will be the Assignee, and im going to count the tickets transferred in first instance. Ticket number may have duplicates depends on how many times it was transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query 2: Same as with Query 1 but this time im going to get the second instance of transferred date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548696#M684038</guid>
      <dc:creator />
      <dc:date>2014-01-23T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first or last instance</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548697#M684039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would then try:&lt;/P&gt;&lt;P&gt;Query1: Count(Aggr(distinct Min([Transferred Date],1),Ticket))&lt;/P&gt;&lt;P&gt;Query2: Count(Aggr(distinct Min([Transferred Date],2),Ticket))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-first-or-last-instance/m-p/548697#M684039</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-23T09:41:20Z</dc:date>
    </item>
  </channel>
</rss>

