<?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 FirstSortedValue Question? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283056#M105199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your dimension in your chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you really want to show the results in one row? Then maybe you need to look into concat() function (this function takes also a sort weight as third parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I think your expression should work if you set an appropriate dimension. FirstSortedValue will return only one value or NULL, if the result is ambiguous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe just a table with dimension Meter_Serial_Number and Expression only(CreatedON) is what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2011 16:27:44 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-12-06T16:27:44Z</dc:date>
    <item>
      <title>FirstSortedValue Question?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283055#M105198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check if anyone can help on the following issue i have here - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work for a water company and we have meters with serial_numbers and the dates they were installed - Note: a property can have numerous meter_serials. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields:&amp;nbsp; - Meter_Serial_Number&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Created_On&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this following expression&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;FIRSTSORTEDVALUE(Meter_Serial_Number, -CreatedOn)&lt;/STRONG&gt;&amp;nbsp; in a chart box expression field, hoping to bring out all the meter_serial_numbers with their respective date they were installed in one single row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ufortunately i can't get it to work, any help please would be much appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 15:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283055#M105198</guid>
      <dc:creator>buddhabang</dc:creator>
      <dc:date>2011-12-06T15:28:14Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue Question?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283056#M105199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your dimension in your chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you really want to show the results in one row? Then maybe you need to look into concat() function (this function takes also a sort weight as third parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I think your expression should work if you set an appropriate dimension. FirstSortedValue will return only one value or NULL, if the result is ambiguous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe just a table with dimension Meter_Serial_Number and Expression only(CreatedON) is what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 16:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283056#M105199</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-06T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue Question?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283057#M105200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;I am assuming that you wanted to see the last value, because you are preceding the sort value with a minus sign. What does it return? If you have more than value then it returns NULL value. In this case you need to use AGGR() function to group the data. You can also use Total qualifier to disregard the chart dimension, although Total qualifier still works with your current selection.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Please post the example if this doesn’t help.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;DV&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 16:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283057#M105200</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-12-06T16:31:16Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue Question?</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283058#M105201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks guys, i managed to get it work but the only down side is, it takes such a long time to run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how i worked it out, concatenating the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;FirstSortedValue&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Serial_Number, -Created_On) &amp;amp;','&amp;amp;&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;date&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;FirstSortedValue&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Installation_Date, -Created_On)) &amp;amp;','&amp;amp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;FirstSortedValue&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Serial_Number, -Created_On,2) &amp;amp;','&amp;amp;&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;date&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: red; font-size: 9pt; font-family: 'Courier New';"&gt;FirstSortedValue&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Installation_Date, -Created_On,2)) &amp;amp;','&amp;amp; (etc....)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;This works fine, and will only privide one row of data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Meter_Serial&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Meter_Seral 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dat2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;23M3JIK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/05/2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 52J3OPL&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;&amp;nbsp; 15/06/2010&amp;nbsp;&amp;nbsp;&amp;nbsp; etc....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Thanks for your help all. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-Question/m-p/283058#M105201</guid>
      <dc:creator>buddhabang</dc:creator>
      <dc:date>2011-12-07T09:34:52Z</dc:date>
    </item>
  </channel>
</rss>

