<?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 Load with Order By and undefined values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-with-Order-By-and-undefined-values/m-p/660251#M1082584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have problem loading data from resident table when I need first value for the group and there are undefined values in group. When data is sorted in UI, undefined values go to the end of list, but looks like it's not a case for load. I've tried 2 different statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [%Job ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstValue([Task Planner]) as [Job Task Planner]&lt;/P&gt;&lt;P&gt;Resident Tasks&lt;/P&gt;&lt;P&gt;GROUP BY [%Job ID]&lt;/P&gt;&lt;P&gt;ORDER BY [%Job ID] ASC,[Task Planned At] ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [%Job ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Task Planner],[Task Planned At]) as [Job Task Planner]&lt;/P&gt;&lt;P&gt;Resident Tasks&lt;/P&gt;&lt;P&gt;GROUP BY [%Job ID]&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases if there is row with undefined [Task Planner],[Task Planned At], I get undefined result. Even if there are rows with values in a group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 11:26:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-26T11:26:25Z</dc:date>
    <item>
      <title>Load with Order By and undefined values</title>
      <link>https://community.qlik.com/t5/QlikView/Load-with-Order-By-and-undefined-values/m-p/660251#M1082584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have problem loading data from resident table when I need first value for the group and there are undefined values in group. When data is sorted in UI, undefined values go to the end of list, but looks like it's not a case for load. I've tried 2 different statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [%Job ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstValue([Task Planner]) as [Job Task Planner]&lt;/P&gt;&lt;P&gt;Resident Tasks&lt;/P&gt;&lt;P&gt;GROUP BY [%Job ID]&lt;/P&gt;&lt;P&gt;ORDER BY [%Job ID] ASC,[Task Planned At] ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [%Job ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue([Task Planner],[Task Planned At]) as [Job Task Planner]&lt;/P&gt;&lt;P&gt;Resident Tasks&lt;/P&gt;&lt;P&gt;GROUP BY [%Job ID]&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases if there is row with undefined [Task Planner],[Task Planned At], I get undefined result. Even if there are rows with values in a group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 11:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-with-Order-By-and-undefined-values/m-p/660251#M1082584</guid>
      <dc:creator />
      <dc:date>2014-06-26T11:26:25Z</dc:date>
    </item>
  </channel>
</rss>

