<?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 error while i Aggregate filed sum() group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215816#M69221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're selecting two fields (PRAN8, and PRMATC), and 3 aggregates, all sums. Your group by clause only contains one of the fields. PRAN8 (which is aliased, as well).&lt;/P&gt;&lt;P&gt;Just for fun, take out your aliases (I'm not 100% sure on the alias syntax, so get it to work without your aliases first, and then change it afterwards); and then add PRMATC to your group by clause. ie: GROUP BY PRAN8, PRMATC&lt;/P&gt;&lt;P&gt;Then, I suspect your script should load just fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jul 2010 00:33:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-07T00:33:35Z</dc:date>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215810#M69215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;im trying to aggregate filed and grouped on load, but my scribt not work and give me the following error message :&lt;/P&gt;&lt;P&gt;ODBC read filed&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM S65C127A.JBFDATA.F43121&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check my script and inform me if there is something wrong..?? and note when i remove &lt;B&gt;&lt;I&gt;group by&lt;/I&gt;&lt;/B&gt; it's work fine!!&lt;/P&gt;&lt;P&gt;my data source is JDE.&lt;/P&gt;&lt;P&gt;/***********************************************/&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;PRAN8 as [Address Number],&lt;/P&gt;&lt;P&gt;sum (PRAPTD) as [Amount Paid - ICL],&lt;/P&gt;&lt;P&gt;sum (PRAREC) as [Amount Rcv.],&lt;/P&gt;&lt;P&gt;sum (PRFAPT) as [Foreign Amount Payed],&lt;/P&gt;&lt;P&gt;PRMATC as [Match Type]&lt;/P&gt;&lt;P&gt;group by PRAN8;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM S65C127A.JBFDATA.F43121;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 13:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215810#M69215</guid>
      <dc:creator />
      <dc:date>2010-07-06T13:31:42Z</dc:date>
    </item>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215811#M69216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my shot (from help):&lt;/P&gt;&lt;P style="font-style: italic"&gt;load [ distinct ] *fieldlist&lt;BR /&gt;&lt;BR /&gt;[( from file [ format-spec ] | inline [ format-spec ] data |&lt;BR /&gt;&lt;BR /&gt;resident table-label | autogenerate size)]&lt;BR /&gt;&lt;BR /&gt;[ where criterion ] | while criterion ]&lt;BR /&gt;&lt;BR /&gt;[ group by fieldlist ]&lt;BR /&gt;&lt;BR /&gt;[ order by field [ sortorder ] { , field [ sortorder ] } ]&lt;/P&gt;&lt;P&gt;As I can see the anwser is that "Group by" is not in the right place; you should try the following (:P):&lt;/P&gt;&lt;P&gt;1. Put the group by statement at the end of the load statement (I think it won't work, but give a chance).&lt;/P&gt;&lt;P&gt;2. Group by at SQL statement (you should do this).&lt;/P&gt;&lt;P&gt;3. Try another load statement after you load your table (i.e. LOAD .... RESIDENT .... GROUP BY .....;)&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>Tue, 06 Jul 2010 13:40:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215811#M69216</guid>
      <dc:creator />
      <dc:date>2010-07-06T13:40:47Z</dc:date>
    </item>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215812#M69217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see an error on the group by syntax. The field PRMATC is neither on a aggregation expression or in the group by statement. If you are sure that this field would have only one value within the group by, you can use the "only(PRMATC)" or if does get more than one value, just include it with the group by statement.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 14:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215812#M69217</guid>
      <dc:creator />
      <dc:date>2010-07-06T14:57:16Z</dc:date>
    </item>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215813#M69218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;i alrady try to fix it after SQL SELECT and after load but not working &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;i don't know maybe JD Edward have specific aggreation ..??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 14:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215813#M69218</guid>
      <dc:creator />
      <dc:date>2010-07-06T14:59:10Z</dc:date>
    </item>
    <item>
      <title>AW:Re: error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215814#M69219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first load all data from datasource by the SQL-statement in a temporary table, then manage the group by statement:&lt;/P&gt;&lt;P&gt;TempTable:&lt;BR /&gt;Load&lt;BR /&gt;PRAN8 as [Address Number],&lt;BR /&gt;PRAPTD,&lt;BR /&gt;PRAREC,&lt;BR /&gt;PRFAPT,&lt;BR /&gt;PRMATC;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM S65C127A.JBFDATA.F43121;&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;Load&lt;BR /&gt;PRAN8 as [Address Number],&lt;BR /&gt;sum (PRAPTD) as [Amount Paid - ICL],&lt;BR /&gt;sum (PRAREC) as [Amount Rcv.],&lt;BR /&gt;sum (PRFAPT) as [Foreign Amount Payed],&lt;BR /&gt;Only(PRMATC) as [Match Type]&lt;BR /&gt;Resident Table&lt;BR /&gt;group by PRAN8;&lt;/P&gt;&lt;P&gt;Drop Table TempTable;&lt;/P&gt;&lt;P&gt;Fields, that will not grouped must be loaded with function Only().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 15:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215814#M69219</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2010-07-06T15:02:05Z</dc:date>
    </item>
    <item>
      <title>AW:Re: error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215815#M69220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried your suggestion but give me error table not found.&lt;/P&gt;&lt;P&gt;i try to make the normal aggregation with SQL database, QVD Excel and all of them work fine....!!!&lt;/P&gt;&lt;P&gt;but when i try to make on JDE it's give me this error .&lt;/P&gt;&lt;P&gt;i think may something wrong with the data &lt;IMG alt="Huh?" src="http://community.qlik.com/emoticons/emotion-18.gif" /&gt; ,&lt;/P&gt;&lt;P&gt;i will try to check it,&lt;/P&gt;&lt;P&gt;and thanks all of you for your support, &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 18:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215815#M69220</guid>
      <dc:creator />
      <dc:date>2010-07-06T18:43:17Z</dc:date>
    </item>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215816#M69221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're selecting two fields (PRAN8, and PRMATC), and 3 aggregates, all sums. Your group by clause only contains one of the fields. PRAN8 (which is aliased, as well).&lt;/P&gt;&lt;P&gt;Just for fun, take out your aliases (I'm not 100% sure on the alias syntax, so get it to work without your aliases first, and then change it afterwards); and then add PRMATC to your group by clause. ie: GROUP BY PRAN8, PRMATC&lt;/P&gt;&lt;P&gt;Then, I suspect your script should load just fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 00:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215816#M69221</guid>
      <dc:creator />
      <dc:date>2010-07-07T00:33:35Z</dc:date>
    </item>
    <item>
      <title>error while i Aggregate filed sum() group by</title>
      <link>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215817#M69222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;ivan_cruz,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;your solution is work fine with me when i use Only() &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot for all of you dears.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 07:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/error-while-i-Aggregate-filed-sum-group-by/m-p/215817#M69222</guid>
      <dc:creator />
      <dc:date>2010-07-07T07:55:21Z</dc:date>
    </item>
  </channel>
</rss>

