<?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: FirstSortedValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254150#M1183143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What an idiot!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS time I will attach the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect, Stefan, that you are right, but I'll let you have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2011 11:07:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-24T11:07:09Z</dc:date>
    <item>
      <title>FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254148#M1183141</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;Please see attached table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with the data in Columns A - D, and I want to return the values in Columns E and F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using FirstSortedValue, which seems logically to be the function I should use, but I am not getting any returns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column E shows the minimum YearPeriod value in Column A for the Group in Column C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, all returns are "201001" because that is the minimum YearPeriod value for each Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, Column F shows the minimum YearPeriod value in Column A for the Type in Column D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This time, there are some returns that are not "201001" (coloured) because there is no such YearPeriod value for these types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QlikView-speak, I have unsuccessfully used the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: red; font-size: 9pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #ff6600; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: fuchsia; font-size: 9pt;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #339966; font-size: 9pt;"&gt;YearPeriod&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #339966; font-size: 9pt;"&gt;Group&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: #ff6600; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;...and, of course Type in place of Group for the second case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet again I am doing something wrong... yet again I throw myself at the feet of the all powerful community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help Please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;EM&gt;QlikView for Windows Version 9.00.7646.9 SR6&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: davewright - typo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 10:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254148#M1183141</guid>
      <dc:creator />
      <dc:date>2011-11-24T10:35:12Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254149#M1183142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, I can't see your attached table, could you check this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the Help states about FirstSortedValue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"...If more than one value of expression share the same lowest sort-order, the function will return null...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this be a problem with your data?&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>Thu, 24 Nov 2011 11:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254149#M1183142</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-24T11:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254150#M1183143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What an idiot!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS time I will attach the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect, Stefan, that you are right, but I'll let you have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 11:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254150#M1183143</guid>
      <dc:creator />
      <dc:date>2011-11-24T11:07:09Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254151#M1183144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=min(total&amp;lt;Group&amp;gt; YearPeriod)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp.&lt;/P&gt;&lt;P&gt;=min(total&amp;lt;Type&amp;gt; YearPeriod) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expressions.&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>Thu, 24 Nov 2011 11:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254151#M1183144</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-24T11:21:56Z</dc:date>
    </item>
    <item>
      <title>FirstSortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254152#M1183145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 11:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue/m-p/254152#M1183145</guid>
      <dc:creator />
      <dc:date>2011-11-24T11:28:59Z</dc:date>
    </item>
  </channel>
</rss>

