<?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: WHat is the FirstSortedValue() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660384#M1065560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;em enduku ..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 12:56:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-22T12:56:47Z</dc:date>
    <item>
      <title>WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660371#M1065546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;WHat is the FirstSortedValue() ?? Can anyone explain with example ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660371#M1065546</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-09-22T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660372#M1065547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor238"&gt;&lt;/A&gt;&lt;A name="firstsortedvalue"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;firstsortedvalue(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {, fld}&amp;gt;]] expression [, sort_weight [, n]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;returns the first value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; sorted by corresponding &lt;SPAN class="Italic"&gt;sort-weight&lt;/SPAN&gt; when &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; is iterated over the chart dimension(s). &lt;SPAN class="Italic"&gt;Sort-weight&lt;/SPAN&gt; should return a numeric value where the lowest value will render the corresponding value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; to be sorted first. By preceding the &lt;SPAN class="Italic"&gt;sort-value&lt;/SPAN&gt; expression with a minus sign, the function will return the last value instead. If more than one value of expression share the same lowest &lt;SPAN class="Italic"&gt;sort-order&lt;/SPAN&gt;, the function will return null. By stating an n larger than 1, you will get the nth value in order. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( PurchasedArticle, OrderDate )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( PurchasedArticle, -OrderDate, 2 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( A/B, X*Y/3 )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( distinct PurchasedArticle, OrderDate )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( total PurchasedArticle, OrderDate )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="Code"&gt;firstsortedvalue ( total &amp;lt;Grp&amp;gt; PurchasedArticle, OrderDate ) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660372#M1065547</guid>
      <dc:creator />
      <dc:date>2014-09-22T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660373#M1065548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;see link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/30532"&gt;FirstSortedValue()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660373#M1065548</guid>
      <dc:creator />
      <dc:date>2014-09-22T10:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660374#M1065549</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;Check this&lt;/P&gt;&lt;P&gt;&lt;A class="unlinked" title="http://qlikshare.com/tag/firstsortedvalue/"&gt;http://qlikshare.com/tag/firstsortedvalue/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660374#M1065549</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-22T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660375#M1065550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will give the first value of expression based on the sort wait .sort wait should be numeric&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u write the expression firstsortedvalue(table1,table2)&amp;nbsp;&amp;nbsp; output is D i.e is 4&lt;/P&gt;&lt;P&gt;if u go for firstsortedvalue(table1,-table2)&amp;nbsp; then lowest value&amp;nbsp;&amp;nbsp; A i.e is 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660375#M1065550</guid>
      <dc:creator />
      <dc:date>2014-09-22T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660376#M1065551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEy,&lt;/P&gt;&lt;P&gt;If i use&amp;nbsp; &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;firstsortedvalue ( PurchasedArticle, OrderDate )&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;then does it return PurchasedArticle value on basis of Minimum OrderDate ??&lt;/P&gt;&lt;P&gt;And if i use firstsortedvalue ( PurchasedArticle, -OrderDate ) &lt;/P&gt;&lt;P&gt;then does it return PurchasedArticle value on basis of Maximum OrderDate ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it so ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660376#M1065551</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-09-22T10:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660377#M1065552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u use - symbol then it gives minimum value&lt;/P&gt;&lt;P&gt;if u have no symbol then it gives maximum value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660377#M1065552</guid>
      <dc:creator />
      <dc:date>2014-09-22T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660378#M1065553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstsortedvalue(ValueField, WeightField)&lt;/P&gt;&lt;P&gt;It will give you the first sorted value of the ValueField depending on the specified WeightField.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;eg. firstsortedvalue(AccountBalance,ReportDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This will return the value of AccountBalance on the first date as per the date variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Hope this helps &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 10:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660378#M1065553</guid>
      <dc:creator />
      <dc:date>2014-09-22T10:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660379#M1065554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;firstsortedvalue(AccountBalance,ReportDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;will return AccountBalance corresponding to Maximum Report Date ??&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 11:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660379#M1065554</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2014-09-22T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660380#M1065555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, it will return for minimum report date, if you want it to return for maximum report date then you can edit the expression as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f6f6f6;"&gt;firstsortedvalue(AccountBalance,-ReportDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f6f6f6;"&gt;and the variable for weight may not necessarily be a date variable, you can use any other variable also.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 11:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660380#M1065555</guid>
      <dc:creator />
      <dc:date>2014-09-22T11:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660381#M1065556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you got your answer, kindly mark helpful or correct answer and close the post.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660381#M1065556</guid>
      <dc:creator />
      <dc:date>2014-09-22T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660382#M1065557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;firstsortedvalue () ,&amp;nbsp; is nothing but we can work on two perameters .&lt;/P&gt;&lt;P&gt;1). string value&lt;/P&gt;&lt;P&gt;2). numeric value,(only stright table &amp;amp; pivot table) it ;ll work.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;1).&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;firstsortedvalue(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;name,-sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) it 'll display the lowest value in&amp;nbsp; the sales&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2).&lt;SPAN style="font-size: 10pt;"&gt;firstsortedvalue(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;name,sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) it 'll display the highest value in&amp;nbsp; the sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660382#M1065557</guid>
      <dc:creator />
      <dc:date>2014-09-22T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660383#M1065558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nerchukuntunnara leka working in any org?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660383#M1065558</guid>
      <dc:creator />
      <dc:date>2014-09-22T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660384#M1065560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;em enduku ..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660384#M1065560</guid>
      <dc:creator />
      <dc:date>2014-09-22T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660385#M1065562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;urkane brother&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 12:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660385#M1065562</guid>
      <dc:creator />
      <dc:date>2014-09-22T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: WHat is the FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660386#M1065563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Just to clear up the use of the "-" symbol in the second parameter. When the negative symbol is used, it will sort the &lt;STRONG&gt;maximum &lt;/STRONG&gt;to be first. If it is left out, it sorts the &lt;STRONG&gt;minimum &lt;/STRONG&gt;to be first.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;So for something like:&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Group&amp;nbsp;&amp;nbsp;&amp;nbsp; Day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 75&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;if we do:&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;FirstSortedValue(Day, Value)&amp;nbsp;&amp;nbsp;&amp;nbsp; ------- returns&amp;nbsp; 3&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;FirstSortedValue(Day, -Value)&amp;nbsp; ------- returns 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;From Qlikview Help:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax" style="font-size: 13.3333339691162px;"&gt;&lt;A name="kanchor237"&gt;&lt;/A&gt;&lt;A name="firstsortedvalue"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="color: #ffffff; background-color: #3399ff;"&gt;firstsortedvalue&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[{set_expression}][ &lt;SPAN class="Bold"&gt;distinct&lt;/SPAN&gt; ] [ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {, fld}&amp;gt;]] expression [, sort_weight [, n]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;returns the first value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; sorted by corresponding &lt;SPAN class="Italic"&gt;sort-weight&lt;/SPAN&gt; when &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; is iterated over the chart dimension(s). &lt;SPAN class="Italic"&gt;Sort-weight&lt;/SPAN&gt; should return a numeric value &lt;STRONG style="font-size: 12pt;"&gt;where the lowest value will render the corresponding value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; to be sorted first&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;. &lt;/SPAN&gt;&lt;STRONG style="font-size: 12pt;"&gt;By preceding the &lt;SPAN class="Italic"&gt;sort-value&lt;/SPAN&gt; expression with a minus sign, the function will return the last value instead&lt;/STRONG&gt;. If more than one value of expression share the same lowest &lt;SPAN class="Italic"&gt;sort-order&lt;/SPAN&gt;, the function will return null. By stating an n larger than 1, you will get the nth value in order.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px;"&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHat-is-the-FirstSortedValue/m-p/660386#M1065563</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-22T13:51:48Z</dc:date>
    </item>
  </channel>
</rss>

