<?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 with multiple lowest sort-order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863869#M302359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 05:31:46 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-05-28T05:31:46Z</dc:date>
    <item>
      <title>FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863865#M302355</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;I would like to understand the FirstSortedValue() function &lt;STRONG style="color: #575757;"&gt;in the script&lt;/STRONG&gt;. If I have multiple lowest sort-orders...how can I still get a value in my output table object? When trying some expressions within the function like MinString(SortOrder)&amp;nbsp; I get 'nested aggregation-errors' when reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87752" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87752_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_143277330408895" jivemacro_uid="_143277330408895"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmployeeID, Manager, SortOrder, RowID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, B, 2, 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, C, 3, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, A, 1, 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, A, 1, 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, D, 2, 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, A, 1, 6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, F, 1, 7&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data2:&lt;/P&gt;
&lt;P&gt;Load EmployeeID,&lt;/P&gt;
&lt;P&gt;firstsortedvalue(Manager, SortOrder) as FirstManager Resident Data&lt;/P&gt;
&lt;P&gt;group by EmployeeID;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 00:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863865#M302355</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-28T00:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863866#M302356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding distinct like below. Ignore the errors appearing and run the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue(&lt;STRONG&gt;distinct&lt;/STRONG&gt; Manager, SortOrder)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863866#M302356</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-28T05:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863867#M302357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anbu has provided a better way to remove the redundancy in your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863867#M302357</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-05-28T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863868#M302358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, it works - that is weired...so is this actually a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863868#M302358</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-05-28T05:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863869#M302359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 05:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/863869#M302359</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-28T05:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with multiple lowest sort-order</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/1653957#M448024</link>
      <description>&lt;P&gt;Is there any way of doing this from in the chart expression view? I'm having exactly the same problem, but it still persists even if I use Distinct.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 09:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-multiple-lowest-sort-order/m-p/1653957#M448024</guid>
      <dc:creator>FakeJupiter</dc:creator>
      <dc:date>2019-12-04T09:02:15Z</dc:date>
    </item>
  </channel>
</rss>

