<?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 Group By Problems - error msg &amp;quot;Aggregation expressions required by GROUP BY clause&amp;quot; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219682#M72673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, new it would be something simple! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers for your help!&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2009 22:46:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-19T22:46:36Z</dc:date>
    <item>
      <title>Group By Problems - error msg "Aggregation expressions required by GROUP BY clause"</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219679#M72670</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 am trying to produce a report showing the number of calls answered and the number of calls abandoned,&lt;/P&gt;&lt;P&gt;I am running an SQL Database located on a server which i am able to connect to using an OLE DB connection, the connection works fine. The issue i am having is when i try to group by the call idenfiter "Call ID", i am gettin an error msg stating &lt;STRONG&gt;"Aggregation expressions required by GROUP BY clause"&lt;/STRONG&gt;? What does this mean?&lt;/P&gt;&lt;P&gt;Each CallID apears in many records giving the actions the call has been through. So CallID 1 may be in 3 records.&lt;/P&gt;&lt;P&gt;Call ID Action&lt;/P&gt;&lt;P&gt;1 - Initialized&lt;/P&gt;&lt;P&gt;1 - Waiting&lt;/P&gt;&lt;P&gt;1 - Connected.&lt;/P&gt;&lt;P&gt;Here is the code i am using below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;SQL SELECT CallID, Action&lt;BR /&gt;FROM CCDS.dbo.InboundCallTracking;&lt;BR /&gt;LOAD [CallID], [Action]&lt;BR /&gt;RESIDENT InboundCallTracking&lt;BR /&gt;GROUP BY [CallID], [Action];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have some examples coded in this way which work with no problems so am unsure why mine wont work?&lt;/P&gt;&lt;P&gt;Any help would be greated appresiated.&lt;/P&gt;&lt;P&gt;Thanks, Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 21:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219679#M72670</guid>
      <dc:creator />
      <dc:date>2009-10-19T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Group By Problems - error msg "Aggregation expressions required by GROUP BY clause"</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219680#M72671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe,&lt;BR /&gt;Using GROUP BY is needed when you have aggreagtions like sum(), count(), max() in your SELECT or LOAD. For example:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SELECT&lt;BR /&gt; A,&lt;BR /&gt; B,&lt;BR /&gt; sum(C) as C,&lt;BR /&gt; min(D) as D&lt;BR /&gt;FROM table&lt;BR /&gt;GROUP BY A,B;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;The rule is - the field must be either in aggregation (C and D here), or in GROUP BY (A, and B). &lt;BR /&gt;If there is no aggregation, as in your case - GROUP BY can't be used. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 22:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219680#M72671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-19T22:05:18Z</dc:date>
    </item>
    <item>
      <title>Group By Problems - error msg "Aggregation expressions required by GROUP BY clause"</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219681#M72672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use a group by statement you need to summarize a field by using sum, avg, count,etc..&lt;/P&gt;&lt;P&gt;SQL SELECT CallID, Action FROM CCDS.dbo.InboundCallTracking;&lt;/P&gt;&lt;P&gt;LOAD count([CallID]) as [Number of calls], [Action]&lt;/P&gt;&lt;P&gt;RESIDENT InboundCallTracking GROUP BY [Action];&lt;/P&gt;&lt;P&gt;In this example you'll have tu count of callid per actions.&lt;/P&gt;&lt;P&gt;To optimize it you could add your Load statement before your SQL:&lt;/P&gt;&lt;P&gt;[Number of calls per actions]:&lt;/P&gt;&lt;P&gt;LOAD count([CallID]) as [Number of calls], [Action]&lt;/P&gt;&lt;P&gt;group by Action;&lt;/P&gt;&lt;P&gt;SQL SELECT CallID, Action FROM CCDS.dbo.InboundCallTracking;&lt;/P&gt;&lt;P&gt;I hope this will help you.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 22:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219681#M72672</guid>
      <dc:creator />
      <dc:date>2009-10-19T22:08:27Z</dc:date>
    </item>
    <item>
      <title>Group By Problems - error msg "Aggregation expressions required by GROUP BY clause"</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219682#M72673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, new it would be something simple! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers for your help!&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 22:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Problems-error-msg-quot-Aggregation-expressions/m-p/219682#M72673</guid>
      <dc:creator />
      <dc:date>2009-10-19T22:46:36Z</dc:date>
    </item>
  </channel>
</rss>

