<?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 error - Using functions in script??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147209#M25660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Hi everyone, I'm trying to create a table of monthyl minutes which is linked to the calendar but I get error messages. Any thought why this is not working?&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;NetworkDays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(monthstart(Min(MonthYear)), monthend(MAX(MonthYear))) *24*60 &lt;B&gt;as&lt;/B&gt; &lt;P&gt;MonthlyMinutes&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;RESIDENT&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2009 20:17:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-19T20:17:07Z</dc:date>
    <item>
      <title>Load error - Using functions in script???</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147209#M25660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Hi everyone, I'm trying to create a table of monthyl minutes which is linked to the calendar but I get error messages. Any thought why this is not working?&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;NetworkDays&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(monthstart(Min(MonthYear)), monthend(MAX(MonthYear))) *24*60 &lt;B&gt;as&lt;/B&gt; &lt;P&gt;MonthlyMinutes&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;RESIDENT&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MasterCalendar;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 20:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147209#M25660</guid>
      <dc:creator />
      <dc:date>2009-06-19T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Load error - Using functions in script???</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147210#M25661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;your problem are the Min (Max) function in the table. Min (Max) are aggregation functions and used in a table with other fields will force you to use a GROUP BY.&lt;/P&gt;&lt;P&gt;To avoid this do the following:&lt;/P&gt;&lt;P&gt;&lt;B&gt;First load Min and Max Date in a single table.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Min(Date) as MinDate,&lt;/P&gt;&lt;P&gt;Max(Date) as MaxDate&lt;/P&gt;&lt;P&gt;Resident MasterCalendar;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Second store the values in a variable.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(Peek('MinDate', 0, 'MinMaxDate'));&lt;BR /&gt;LET varMaxDate = Num(Peek('MaxDate', -1, 'MinMaxDate'));&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Use the variable in your table.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; MontYear,&lt;BR /&gt; NetworkDays($(varMinDate),$(varMaxDate))*24*60 as MonthlyMinutes&lt;BR /&gt;RESIDENT MasterCalendar;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 20:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147210#M25661</guid>
      <dc:creator />
      <dc:date>2009-06-19T20:55:06Z</dc:date>
    </item>
    <item>
      <title>Load error - Using functions in script???</title>
      <link>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147211#M25662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;What are the values you are taking in the MonthYear field as the Monthstart, Monthend and Networkdays always take full date not just Monthand Year.&lt;/P&gt;&lt;P&gt;If possible upload the sample of the application&lt;/P&gt;&lt;P&gt;Talha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2009 20:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-error-Using-functions-in-script/m-p/147211#M25662</guid>
      <dc:creator />
      <dc:date>2009-06-19T20:59:35Z</dc:date>
    </item>
  </channel>
</rss>

