<?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 General Script Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246479#M1208954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have only aggr expression in your load the you dont have to use the groupBy clause&lt;/P&gt;&lt;P&gt;qlikview will consider the entire table as one big group&lt;/P&gt;&lt;P&gt;kinda like using TOTAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 07:09:01 GMT</pubDate>
    <dc:creator>wizardo</dc:creator>
    <dc:date>2011-01-06T07:09:01Z</dc:date>
    <item>
      <title>General Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246476#M1208951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to look up a calender file returning a single record with Today's date. Using this returned record I am trying to get the Financial Year &amp;amp; Period value and then in another table return all records from the same calendar table so I can then get the start date of the Financial Year &amp;amp; Period combination.&lt;/P&gt;&lt;P&gt;My issue is that each time I run it I get the General Script error message. Can anyone please provide me with information on what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SET dteToday= date(ReloadTime());&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;LOAD FinancialYear,&lt;BR /&gt; FinanceYearPeriod,&lt;BR /&gt; Date,&lt;BR /&gt; CalendarWeek,&lt;BR /&gt; FinancialPeriod,&lt;BR /&gt; FinancialPeriodWeek,&lt;BR /&gt; FinancialWeek,&lt;BR /&gt; FinancialQuarter,&lt;BR /&gt; Day,&lt;BR /&gt; FullDate,&lt;BR /&gt; CalenderDocCounter,&lt;BR /&gt; NoOfDaysInPeriod,&lt;BR /&gt; NoOfDaysInYear&lt;BR /&gt;FROM&lt;BR /&gt;\\206.156.1.3\QlikView\Data_QVD\Calendar.qvd (qvd)&lt;BR /&gt;WHERE FullDate = $(dteToday);&lt;/P&gt;&lt;P&gt;SET v1 = min(FinanceYearPeriod);&lt;BR /&gt;&lt;BR /&gt;//get todays period details&lt;BR /&gt;TodayDetails:&lt;BR /&gt;LOAD Date as NODDate,&lt;BR /&gt; FullDate as nodFull,&lt;BR /&gt; 1 as DayCounter,&lt;BR /&gt; FinanceYearPeriod&lt;BR /&gt;Resident Calendar Where FinanceYearPeriod = $(v1);&lt;BR /&gt;&lt;BR /&gt;set vThisFYP = load min(FinanceYearPeriod) resident Calendar;&lt;BR /&gt;Set vThisPeriodStart = min(nodFull);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 11:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246476#M1208951</guid>
      <dc:creator />
      <dc:date>2010-03-05T11:53:25Z</dc:date>
    </item>
    <item>
      <title>General Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246477#M1208952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So with "each time I run it" you mean a reload?&lt;/P&gt;&lt;P&gt;If so, then the first variable is set to &lt;I&gt;now&lt;/I&gt; and I am not sure table Calendar will have a record with field FullDate =&lt;I&gt;now&lt;/I&gt; ...?!?&lt;/P&gt;&lt;P&gt;But perhaps you meant something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 17:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246477#M1208952</guid>
      <dc:creator />
      <dc:date>2010-03-05T17:58:23Z</dc:date>
    </item>
    <item>
      <title>General Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246478#M1208953</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;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;LOAD FinancialYear,&lt;BR /&gt; FinanceYearPeriod,&lt;BR /&gt; Date,&lt;BR /&gt; CalendarWeek,&lt;BR /&gt; FinancialPeriod,&lt;BR /&gt; FinancialPeriodWeek,&lt;BR /&gt; FinancialWeek,&lt;BR /&gt; FinancialQuarter,&lt;BR /&gt; Day,&lt;BR /&gt; FullDate,&lt;BR /&gt; CalenderDocCounter,&lt;BR /&gt; NoOfDaysInPeriod,&lt;BR /&gt; NoOfDaysInYear&lt;BR /&gt;FROM&lt;BR /&gt;&lt;A&gt;\\206.156.1.3\QlikView\Data_QVD\Calendar.qvd&lt;/A&gt; (qvd)&lt;BR /&gt;WHERE FullDate = $(dteToday);&lt;BR /&gt;MinFY:&lt;BR /&gt;LOAD min(FinanceYearPeriod) as MinFY&lt;BR /&gt;RESIDENT Calendar&lt;BR /&gt;GROUP BY 1;&lt;BR /&gt;Let v1 = peek('MinFY');&lt;BR /&gt;DROP TABLE MinFY;&lt;BR /&gt;//get todays period details&lt;BR /&gt;TodayDetails:&lt;BR /&gt;LOAD Date as NODDate,&lt;BR /&gt; FullDate as nodFull,&lt;BR /&gt; 1 as DayCounter,&lt;BR /&gt; FinanceYearPeriod&lt;BR /&gt;Resident Calendar Where FinanceYearPeriod = $(v1);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The min() and max() functions require GROUP BY addition. The code above should run fine, or atleast give you idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 20:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246478#M1208953</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-03-05T20:57:07Z</dc:date>
    </item>
    <item>
      <title>General Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246479#M1208954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have only aggr expression in your load the you dont have to use the groupBy clause&lt;/P&gt;&lt;P&gt;qlikview will consider the entire table as one big group&lt;/P&gt;&lt;P&gt;kinda like using TOTAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 07:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error/m-p/246479#M1208954</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2011-01-06T07:09:01Z</dc:date>
    </item>
  </channel>
</rss>

