<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-function/m-p/307401#M498835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thing is firstsortedvalue will only return results if there is a single corresponding value for the first sorte field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to get the date you could just use Min(LABTRANSDATE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2011 16:10:09 GMT</pubDate>
    <dc:creator>danielrozental</dc:creator>
    <dc:date>2011-06-21T16:10:09Z</dc:date>
    <item>
      <title>firstsortedvalue function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-function/m-p/307400#M498834</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 a data set that comprises 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first table is work orders, the second table is labour transactions. The relationship is one to many, linked by a WONUM key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the first labour transaction date for each work order in a straight table. Im trying to use the following function as one of the chart expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedvalue(LABTRANSDATE,LABTRANSDATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is returning null in all cases except where there is only a single corresponding labour record (i.e where there is a one to one relationship).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest another way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 15:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-function/m-p/307400#M498834</guid>
      <dc:creator />
      <dc:date>2011-06-21T15:51:40Z</dc:date>
    </item>
    <item>
      <title>firstsortedvalue function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-function/m-p/307401#M498835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thing is firstsortedvalue will only return results if there is a single corresponding value for the first sorte field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to get the date you could just use Min(LABTRANSDATE).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2011 16:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-function/m-p/307401#M498835</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-06-21T16:10:09Z</dc:date>
    </item>
  </channel>
</rss>

