<?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: Script Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633712#M1095569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But haven't I created these with the num function above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 15:52:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-14T15:52:04Z</dc:date>
    <item>
      <title>Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633710#M1095567</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;Can some one please help.&amp;nbsp; When I run the following script I get an error because the NEW_CALL_DATE cannot be founnd.&amp;nbsp; I've moved this to the first and last line and still get the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CALL_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(CALL_DATE) as NEW_CALL_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(today()-366) as LAST_YEAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "CALL_NUMBER",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERIAL as VISIT_SERIAL,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (CATEGORY = 'EM' and NEW_CALL_DATE &amp;gt; LAST_YEAR,'Y','N') as EM_LAST_YEAR;&lt;/P&gt;&lt;P&gt;SQL SELECT "CALL_DATE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CALL_NUMBER",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERIAL&lt;/P&gt;&lt;P&gt;FROM VISITS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633710#M1095567</guid>
      <dc:creator />
      <dc:date>2014-05-14T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633711#M1095568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This error happens because you try to use NEW_CALL_DATE in this line&lt;/P&gt;&lt;P&gt;If (CATEGORY = 'EM' and &lt;STRONG&gt;NEW_CALL_DATE&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;LAST_YEAR&lt;/STRONG&gt;,'Y','N') as EM_LAST_YEAR&lt;/P&gt;&lt;P&gt;And, LAST_YEAR also doesn't exist yet...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633711#M1095568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633712#M1095569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But haven't I created these with the num function above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633712#M1095569</guid>
      <dc:creator />
      <dc:date>2014-05-14T15:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633713#M1095570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you have to use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If (CATEGORY = 'EM' and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(CALL_DATE)&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; num(today()-366)&lt;/SPAN&gt;,'Y','N')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633713#M1095570</guid>
      <dc:creator />
      <dc:date>2014-05-14T15:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633714#M1095571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned by Michael &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;NEW_CALL_DATE&amp;nbsp; and LAST_YEAR are newly created fields and hence wont be available until the table is fully loaded once. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So to fix it you can do another preload (totally two preloads here).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; If (CATEGORY = 'EM' and NEW_CALL_DATE &amp;gt; LAST_YEAR,'Y','N') as EM_LAST_YEAR;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "CALL_DATE",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; num(CALL_DATE) as NEW_CALL_DATE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; num(today()-366) as LAST_YEAR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; "CALL_NUMBER",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERIAL as VISIT_SERIAL;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT "CALL_DATE",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "CALL_NUMBER",&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERIAL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM VISITS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633714#M1095571</guid>
      <dc:creator />
      <dc:date>2014-05-14T15:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633715#M1095572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet.&lt;BR /&gt;See answers from &lt;A href="https://community.qlik.com/qlik-users/155818"&gt;Augustin Peyridieux&lt;/A&gt; and &lt;A href="https://community.qlik.com/qlik-users/92957"&gt;Ajay Prabhakaran&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Error/m-p/633715#M1095572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:59:30Z</dc:date>
    </item>
  </channel>
</rss>

