<?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 MIN() value and its relative fields using expression? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720579#M10488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 18:47:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-18T18:47:27Z</dc:date>
    <item>
      <title>How to get MIN() value and its relative fields using expression?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720576#M10485</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 have the following problem where I am not able to get the values for a minimum date value field for each customer. &lt;/P&gt;&lt;P&gt;I have a table as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="200" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&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;}" 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: 486px; height: 171px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Customer&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;First Service Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px; vertical-align: baseline;" valign="middle"&gt;Next Service Date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/01/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/02/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/02/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/10/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/10/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/02/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/14/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/14/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/10/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/17/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/17/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have derived the minimum of 'First Service Date' for each customer using the expression:&lt;/P&gt;&lt;P&gt;=Date(Min([First Service Date], [Customer]), 'MM/DD/YYYY') but not able to get the corresponding 'Next Service Date' value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to find the minimum of 'First Service Date' for each customer and then its corresponding 'Next Service Date'. I want the output as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="100" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&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;}" 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;}" style="border: 1px solid #000000; width: 486px; height: 90px;"&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;First Service Date&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;Next Service Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/01/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/02/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/02/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/14/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/10/2014&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;09/17/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your inputs are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720576#M10485</guid>
      <dc:creator />
      <dc:date>2014-09-17T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get MIN() value and its relative fields using expression?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720577#M10486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try firstsortedvalue([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Next Service Date&lt;/SPAN&gt;],[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;First Service Date&lt;/SPAN&gt;])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720577#M10486</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-17T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get MIN() value and its relative fields using expression?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720578#M10487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue([Next Service Date],Aggr(MIN([First Service Date]),Customer))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 13:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720578#M10487</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-17T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get MIN() value and its relative fields using expression?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720579#M10488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-MIN-value-and-its-relative-fields-using-expression/m-p/720579#M10488</guid>
      <dc:creator />
      <dc:date>2014-09-18T18:47:27Z</dc:date>
    </item>
  </channel>
</rss>

