<?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 script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480280#M179459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you but I still get the same error (execution failed). Could it be that since I'm joining tables that I have to group by also the fields in the first list I'm loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 09:53:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-13T09:53:55Z</dc:date>
    <item>
      <title>FirstSortedValue in script</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480278#M179457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’ve got the below script, joining two Sharepoint lists (tasks and projects). The two are linked by the ProjectID. Each project may have several tasks attached to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13869274462189418" jivemacro_uid="_13869274462189418"&gt;
&lt;P&gt;Report:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;owsDate AS TaskGoLiveDate,&lt;/P&gt;
&lt;P&gt;owsID AS TaskID&lt;/P&gt;
&lt;P&gt;owsProject AS ProjectID&lt;/P&gt;
&lt;P&gt;FROM (sharepoint task list)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Outer Join (Report)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;owsID AS ProjectID,&lt;/P&gt;
&lt;P&gt;owsPrice AS ProjectPrice&lt;/P&gt;
&lt;P&gt;FROM (sharepoint project list)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a chart I’ve got the following expression to show each projects latest TaskGoLiveDate:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=FirstSortedValue(TaskGoLiveDate, TaskID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I’d like to do this at script level instead. I tried doing with the following:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13869274373708954" jivemacro_uid="_13869274373708954"&gt;
&lt;P&gt;Report:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;owsDate AS TaskGoLiveDate,&lt;/P&gt;
&lt;P&gt;owsID AS TaskID&lt;/P&gt;
&lt;P&gt;owsProject AS ProjectID&lt;/P&gt;
&lt;P&gt;FROM (sharepoint task list)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Outer Join (Report)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;owsID AS ProjectID,&lt;/P&gt;
&lt;P&gt;owsPrice AS ProjectPrice,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(TaskGoLiveDate, TaskID) AS ProjectGoLiveDate&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;FROM (sharepoint project list)&lt;STRONG&gt; GROUP BY ProjectID&lt;/STRONG&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me an undefined error when I try to load the script. Can anyone please point me in the right direction what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 09:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480278#M179457</guid>
      <dc:creator />
      <dc:date>2013-12-13T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in script</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480279#M179458</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by owsID, owsPrice;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 09:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480279#M179458</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-12-13T09:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in script</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480280#M179459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you but I still get the same error (execution failed). Could it be that since I'm joining tables that I have to group by also the fields in the first list I'm loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 09:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480280#M179459</guid>
      <dc:creator />
      <dc:date>2013-12-13T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in script</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480281#M179460</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;You cannot use the fields which are in other tables. You need to combine first and then use it&lt;/P&gt;&lt;P&gt;Hope the below script helps.&lt;/P&gt;&lt;P&gt;Report:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt; owsDate AS TaskGoLiveDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt; owsID AS TaskID&amp;nbsp; &lt;/P&gt;&lt;P&gt; owsProject AS ProjectID&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM (sharepoint task list)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Outer Join (Report)&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; owsID AS ProjectID,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; owsPrice AS ProjectPrice&lt;/P&gt;&lt;P&gt;FROM (sharepoint project list) GROUP BY ProjectID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Report)&lt;/P&gt;&lt;P&gt;LOAD,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ProjectID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FirstSortedValue(TaskGoLiveDate, TaskID) AS ProjectGoLiveDate&lt;/P&gt;&lt;P&gt;Resident Report&lt;/P&gt;&lt;P&gt;Group By ProjectID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 10:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480281#M179460</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-12-13T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in script</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480282#M179461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, this solved the problem. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took away the Group By for the outer join though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 10:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-script/m-p/480282#M179461</guid>
      <dc:creator />
      <dc:date>2013-12-13T10:43:43Z</dc:date>
    </item>
  </channel>
</rss>

