<?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 Count in script load not possible ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227925#M80003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having search the forum for days I can't understand why my load doesn't work. I want to do a simple count(field) as CountedField in my load, but the log shows General script error. My syntax is:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;count(field) as CountedField&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Sort by field;&lt;/P&gt;&lt;P&gt;I have also tried with group by instead of sort by but same error occours. Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 10:24:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-20T10:24:28Z</dc:date>
    <item>
      <title>Count in script load not possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227925#M80003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having search the forum for days I can't understand why my load doesn't work. I want to do a simple count(field) as CountedField in my load, but the log shows General script error. My syntax is:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;count(field) as CountedField&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Sort by field;&lt;/P&gt;&lt;P&gt;I have also tried with group by instead of sort by but same error occours. Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227925#M80003</guid>
      <dc:creator />
      <dc:date>2010-12-20T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Count in script load not possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227926#M80004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You cannot use count like this, u must use aggregate function for it.&lt;/P&gt;&lt;P&gt;i.e. load count(Field1) as CountF1, Field2 resident xTab &lt;STRONG&gt;group by Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;the fields u arer using in ur load must group by except count or sum fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227926#M80004</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2010-12-20T10:31:55Z</dc:date>
    </item>
    <item>
      <title>Count in script load not possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227927#M80005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think using the group by is correct. In this case you have to list all fields to be grouped that means "group by field1, ..., fieldn;" with only one exception: the count-field itself. I am quite sure that a wildcard is not allowed here, you have to list all fields in the LOAD as well as in the group by -clause. This is my experience.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227927#M80005</guid>
      <dc:creator />
      <dc:date>2010-12-20T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Count in script load not possible ?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227928#M80006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You should use Group By&lt;/P&gt;&lt;P&gt;2. In Load statement must be only fields that are used in Group By statement and aggregation functions&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; Field&lt;BR /&gt; ,count(Field) as cnt&lt;BR /&gt;Resident Table&lt;BR /&gt;Group By Field;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 10:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-script-load-not-possible/m-p/227928#M80006</guid>
      <dc:creator />
      <dc:date>2010-12-20T10:36:54Z</dc:date>
    </item>
  </channel>
</rss>

