<?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 find second minimum value for each unique field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725813#M260302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;Dimension : Customer&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;min([Service date], 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 08:16:25 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-09-18T08:16:25Z</dc:date>
    <item>
      <title>how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725809#M260298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and am having trouble in finding the second min value for each customer. My table is as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="224" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid #000000; width: 237px; height: 180px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Service Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/0912&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2014/09/20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I am able to get the minimum service date for each customer with the following expression:&lt;/P&gt;&lt;P&gt;=Date(Min([Session Started], [Consumer ID]), 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to find the second minimum service date for each customer. Please let me know how do we achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 07:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725809#M260298</guid>
      <dc:creator />
      <dc:date>2014-09-18T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725810#M260299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;min(field, 2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 07:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725810#M260299</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-18T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725811#M260300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not give the desired output. I want the second minimum of the field 'Service Date' for each customer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 07:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725811#M260300</guid>
      <dc:creator />
      <dc:date>2014-09-18T07:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725812#M260301</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;=aggr(min([Service date], 2), customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725812#M260301</guid>
      <dc:creator>MWiciok</dc:creator>
      <dc:date>2014-09-18T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725813#M260302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight Table:&lt;/P&gt;&lt;P&gt;Dimension : Customer&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;min([Service date], 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725813#M260302</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-18T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725814#M260303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName;&lt;/P&gt;&lt;P&gt;LOAD Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([Service Date], 'YYYY/MM/DD')) AS ServiceDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="133850" data-objecttype="1" href="http://community.qlik.com/thread/133850"&gt;http://community.qlik.com/thread/133850&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Straight Table:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension : Customer&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expression: &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;min(ServiceDate, 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725814#M260303</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-18T08:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725815#M260304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check enclosed file...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 08:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725815#M260304</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-18T08:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to find second minimum value for each unique field</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725816#M260305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help guys!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 10:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-find-second-minimum-value-for-each-unique-field/m-p/725816#M260305</guid>
      <dc:creator />
      <dc:date>2014-09-18T10:44:26Z</dc:date>
    </item>
  </channel>
</rss>

