<?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: &amp;quot;Script Error&amp;quot;: invalid expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454138#M169461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having the same problem and hadn't seen this mentioned anywhere else. This should be flagged as the the correct answer. Giving a like. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 15:12:07 GMT</pubDate>
    <dc:creator>bdiamante</dc:creator>
    <dc:date>2014-07-01T15:12:07Z</dc:date>
    <item>
      <title>"Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454133#M169456</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;Where could the invalid expression be in this script?&amp;nbsp; I'm receiving the "script error" message while running the script.&amp;nbsp; The error&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;"Error: Invalid expression" is shown in the Script Execution Progess dialog box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SUB&lt;/P&gt; &lt;STRONG style="color: #0000ff;"&gt;Headcount_Summary&lt;/STRONG&gt;HeadCountSumm:&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;EmpMonthYear&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;BusinessUnit&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Business Unit]&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;DepartmentNo&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Department No]&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;DepartmentName&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Department Name]&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;WorkCenter&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Work Center]&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;PayGroup&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Pay Group]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;EmpRecordCtr&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Headcount&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;NetWorkDays&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MthSrt&lt;/SPAN&gt;)),&lt;SPAN style="color: #0000ff;"&gt;MonthEnd&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MthEnd&lt;/SPAN&gt;))) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;WorkingDays&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Employees&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;EmpMonthYear&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;BusinessUnit&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;DepartmentName&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;WorkCenter&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;PayGroup&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN style="color: #008000;"&gt;/* Grouping is made according to EW Organization's hierarchy. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="color: #0000ff;"&gt;ENDSUB&lt;/STRONG&gt; &lt;SPAN style="color: #008000;"&gt;/* Headcount_Summary */ &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454133#M169456</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2012-09-28T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: "Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454134#M169457</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;&lt;/P&gt;&lt;P&gt;Please remove the sub and end sub in your script..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And add DepartmentNo,workingDays, MthSrt,MthEnd in group by.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 21:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454134#M169457</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-28T21:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454135#M169458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm calling the subroutine from another tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 21:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454135#M169458</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2012-09-28T21:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: "Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454136#M169459</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; Did you add &lt;/P&gt;&lt;P&gt; DepartmentNo,workingDays, MthSrt,MthEnd in group by..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 21:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454136#M169459</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-28T21:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: "Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454137#M169460</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;If you use a group by statement, every field in the LOAD or SELECT must either be in an aggregate expression (like Sum or Max) or in the group by expression. As the previous post states, you have omitted some fields from the group by. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 21:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454137#M169460</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-28T21:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: "Script Error": invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454138#M169461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having the same problem and hadn't seen this mentioned anywhere else. This should be flagged as the the correct answer. Giving a like. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 15:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Script-Error-quot-invalid-expression/m-p/454138#M169461</guid>
      <dc:creator>bdiamante</dc:creator>
      <dc:date>2014-07-01T15:12:07Z</dc:date>
    </item>
  </channel>
</rss>

