<?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: Expression to pick result based on MIN datetime in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189783#M384568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny!&lt;/P&gt;&lt;P&gt;Good catch. I updated my original post. I added "Assessment" column. In my sql it only picks records where Assessment value is 1. When I added a listbox to see what ActualDateTime are available, I see 2015-08-23 01:10:00.000 and 2015-08-23 01:25:00.000. So TimeStamp(Min(ActualDateTime)) gives me 2015-08-23 01:10:00.000. However, FirstSortedValue(SurveyQuery, &lt;SPAN style="font-size: 13.3333px;"&gt;ActualDateTime) results blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2016 15:14:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-21T15:14:57Z</dc:date>
    <item>
      <title>Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189775#M384560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below information on one customer. Since I have so many database tables joined, I am avoiding to modify my sql script. Therefore, I needed help on writing an expression to pick minimum response where ActualDateTime is minimum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;ClientNumber&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Template&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;ActualDateTime&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;Assessment&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyQuery&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Response&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Arrival&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:10:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Arrival&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:10:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1.01&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Arrival&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:10:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1.02&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Departure&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:25:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Departure&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:25:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1.01&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="90"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Departure&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="166"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2015-08-23 01:25:00.000&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;1.02&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" height="45" style="padding: 0px 5.4pt; height: 46px; width: 672px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;ClientNumber&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;ActualDateTime&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyQuery&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Response&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;C0001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;2015-08-23 01:10:00.000&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;SurveyStat&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="128"&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will be the right expression to get the expected result?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189775#M384560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T13:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189776#M384561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FirstSortedValue() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189776#M384561</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-21T13:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189777#M384562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm"&gt;FirstSortedValue - chart function ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189777#M384562</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-09-21T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189778#M384563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ClientNumber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(Min(ActualDateTime))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(SurveyQuery, &lt;SPAN style="font-size: 13.3333px;"&gt;ActualDateTime)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FirstSortedValue(Response, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ActualDateTime)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189778#M384563</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189779#M384564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;Dimension :&lt;/P&gt;&lt;P&gt;ClientNumber&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Aggr(MinString(ActualDateTime),ClientNumber&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&amp;nbsp; (Check 'Suppress when Null value')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;SurveyQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Expression :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Min(Response)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 14:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189779#M384564</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2016-09-21T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189780#M384565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny! TimeStamp(Min(ActualDateTime)) gives me the right value. However, FirstSortedValue(SurveyQuery, &lt;SPAN style="font-size: 13.3333px;"&gt;ActualDateTime) is still giving me blank. It might be something to do on how my tables are joined. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189780#M384565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189781#M384566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishal - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you have three rows with the same TimeStamp, how did you decide to pick 2 here and which 2 (Row 1 or Row 2)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138193_Capture.PNG" style="height: 148px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189781#M384566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189782#M384567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Antonio! Response does not have to be minimum. I need to pick any response based on the minimum ActualDateTime. Your logic though of adding the dimension field will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189782#M384567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189783#M384568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny!&lt;/P&gt;&lt;P&gt;Good catch. I updated my original post. I added "Assessment" column. In my sql it only picks records where Assessment value is 1. When I added a listbox to see what ActualDateTime are available, I see 2015-08-23 01:10:00.000 and 2015-08-23 01:25:00.000. So TimeStamp(Min(ActualDateTime)) gives me 2015-08-23 01:10:00.000. However, FirstSortedValue(SurveyQuery, &lt;SPAN style="font-size: 13.3333px;"&gt;ActualDateTime) results blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189783#M384568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189784#M384569</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;ClientNumber&lt;/STRONG&gt;&lt;/SPAN&gt;&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expressions&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;TimeStamp(Min(ActualDateTime))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;FirstSortedValue(&lt;STRONG style="color: #ff0000; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DISTINCT &lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;Response, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;ActualDateTime)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189784#M384569</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189785#M384570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny! Great. That worked. Just little bit more complication now based on the modification request. I need data on 2 SurveryQuery. Initially it was only SurveyStat but now we need information from 2 queries. First query is SurveyStat and second is SurveyStat2. How can I differentiate the responses for different queries?&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189785#M384570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189786#M384571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about may be this:&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;Dimension&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ClientNumber&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;SurveyQuery&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expressions&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(ActualDateTime))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;Response, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189786#M384571</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T15:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189787#M384572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny! But don't we have to define where SurveyQuery=SurveyStat and SurveyQuery=SurveyStat2. Because results for different queries needs to be populated in different columns. I hope you are understanding. I can play around now though. I am getting the idea of your logic. Heading for lunch. ttyl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189787#M384572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T15:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189788#M384573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I think I understand, it seems that you are looking for what I have provided above. But I think you will have to test it out and let us know if this is indeed working or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189788#M384573</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189789#M384574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;@Sunny! I tested it out. It perfectly worked fine when SurveyQuery='SurveyStat'. Now, in sql script I have &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757;"&gt;WHERE SurveyQuery IN ('SurveyStat','SurveyStat2') . So I need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(ActualDateTime)) &lt;SPAN style="color: #0000ff;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(ActualDateTime)) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189789#M384574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T16:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189790#M384575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishal are you trying this out in the script or front end chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189790#M384575</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T16:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189791#M384576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny! Sorry for the confusion. Let me clarify. In my sql script, I have &lt;STRONG&gt;WHERE Assessment='1' and &lt;/STRONG&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SurveyQuery IN ('SurveyStat','SurveyStat2')&lt;/STRONG&gt;. (I believe we don't even need &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;} in expression.) &lt;/SPAN&gt;&lt;/SPAN&gt;Everything else needs to be done on the front end chart. &lt;BR /&gt;&lt;BR /&gt;Below is what I need to fianlly accomplish:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dimension&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ClientNumber&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(ActualDateTime)) &lt;SPAN style="color: #0000ff;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;where SurveyQuery='SurveyStat'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(ActualDateTime)) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Assessment = {1}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;ActualDateTime) &lt;SPAN style="color: #0000ff; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;where SurveyQuery='SurveyStat2'&lt;/SPAN&gt;&lt;/SPAN&gt;&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, 21 Sep 2016 17:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189791#M384576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189792#M384577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&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;Expression:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;TimeStamp(Min({&amp;lt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat'}&lt;/SPAN&gt;&amp;gt;}ActualDateTime))&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;TimeStamp(Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat2'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;&lt;/SPAN&gt;ActualDateTime))&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat2'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat2'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;ActualDateTime)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189792#M384577</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-21T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189793#M384578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I need. Let me test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189793#M384578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T17:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to pick result based on MIN datetime</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189794#M384579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Sunny! That did the trick. I just had to edit few punctuation on the second query expressions on your response.&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;TimeStamp(Min({&amp;lt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat'}&lt;/SPAN&gt;&amp;gt;}ActualDateTime))&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery {'SurveyStat'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;TimeStamp(Min({&amp;lt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat2'}&lt;/SPAN&gt;&amp;gt;}ActualDateTime))&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FirstSortedValue(DISTINCT &lt;SPAN style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery {'SurveyStat2'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;SurveyQuery, &lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;FirstSortedValue(&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;DISTINCT &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-style: inherit;"&gt;Assessment = {1}, &lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SurveyQuery={'SurveyStat2'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Response, &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;ActualDateTime)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Thanks so much.&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 17:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-pick-result-based-on-MIN-datetime/m-p/1189794#M384579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-21T17:48:23Z</dc:date>
    </item>
  </channel>
</rss>

