<?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: General Script Error caused by group where concatenation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618284#M681645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a bug, simply you cannot use an aggregate function in where condition (if it was SQL you could by an embedded Select, in qlik no)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 10:45:18 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-03-10T10:45:18Z</dc:date>
    <item>
      <title>General Script Error caused by group where concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618283#M681644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While developing a QlikView report I came across a "general script error" caused by a WHERE clause in a grouped load. It's reproducable using the script pasted below. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If I enable logging, the logfile does not contain any more details as to why this error is thrown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I encountered a bug, or is there a logical reason why this shouldn't work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meanwhile I've found a workaround by first constructing a second NoConcatenate table, which I then later concatenate and drop in consecutive separate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [ &lt;/P&gt;&lt;P&gt;FactRowNo, Factor&lt;/P&gt;&lt;P&gt;1, 0.5&lt;/P&gt;&lt;P&gt;1, 0.3&lt;/P&gt;&lt;P&gt;2, 1&lt;/P&gt;&lt;P&gt;3, 0.9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Tab1)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; 1-SUM(Factor) As Factor,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FactRowNo&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1-SUM(Factor) &amp;gt; 0&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp; FactRowNo;&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LogFile:&lt;/P&gt;&lt;P&gt;10/03/2014 11:37:56:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; General Script Error&lt;/P&gt;&lt;P&gt;10/03/2014 11:37:56:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution Failed&lt;/P&gt;&lt;P&gt;10/03/2014 11:37:56:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618283#M681644</guid>
      <dc:creator />
      <dc:date>2014-03-10T10:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: General Script Error caused by group where concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618284#M681645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not a bug, simply you cannot use an aggregate function in where condition (if it was SQL you could by an embedded Select, in qlik no)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618284#M681645</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-10T10:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: General Script Error caused by group where concatenation</title>
      <link>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618285#M681646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SQL I would indeed use the HAVING clause for this. Good to know nothing similar is supported in Qlik. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be nice if the script would throw an error with a textual description stating that these two can't be used together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-Script-Error-caused-by-group-where-concatenation/m-p/618285#M681646</guid>
      <dc:creator />
      <dc:date>2014-03-10T10:57:57Z</dc:date>
    </item>
  </channel>
</rss>

