<?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 Issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198597#M57851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the below error when I try to group the month and year from a Salesforce.com table. Can anyone tell me what is wrong with the scripting and what do I need to do to have it run correctly?&lt;/P&gt;&lt;P&gt;Aggregation expressions required by GROUP BY clause&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;Account__c as AccountId,&lt;BR /&gt;Id as OrderId,&lt;BR /&gt;MONTH(Billing_Date__c) AS Month,&lt;BR /&gt;YEAR(Billing_Date__c) AS Year,&lt;BR /&gt;Order__c Group BY MONTH(Billing_Date__c) ,YEAR(Billing_Date__c) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2011 23:02:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-02T23:02:51Z</dc:date>
    <item>
      <title>Group by Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198597#M57851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the below error when I try to group the month and year from a Salesforce.com table. Can anyone tell me what is wrong with the scripting and what do I need to do to have it run correctly?&lt;/P&gt;&lt;P&gt;Aggregation expressions required by GROUP BY clause&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load *,&lt;BR /&gt;Account__c as AccountId,&lt;BR /&gt;Id as OrderId,&lt;BR /&gt;MONTH(Billing_Date__c) AS Month,&lt;BR /&gt;YEAR(Billing_Date__c) AS Year,&lt;BR /&gt;Order__c Group BY MONTH(Billing_Date__c) ,YEAR(Billing_Date__c) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 23:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198597#M57851</guid>
      <dc:creator />
      <dc:date>2011-02-02T23:02:51Z</dc:date>
    </item>
    <item>
      <title>Group by Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198598#M57852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the &lt;B&gt;Group By&lt;/B&gt; function comes after the &lt;B&gt;From&lt;/B&gt; clause.&lt;/P&gt;&lt;P&gt;and i didn't see any &lt;B&gt;From&lt;/B&gt; clause&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 01:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198598#M57852</guid>
      <dc:creator />
      <dc:date>2011-02-03T01:23:28Z</dc:date>
    </item>
    <item>
      <title>Group by Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198599#M57853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;what &lt;STRONG&gt;&lt;A href="http://community.qlik.com/members/mars.balcita/default.aspx"&gt;mOngkz&lt;/A&gt; suggested might be the reason or SInce you are using Load * its including all the fields from that table and in group by clause you are mentioning only one fields Billing_Date.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As per my understanding of Group by if we are mentioning any fields in Load statement then it either should be there after the group by clause or its should have aggregate function.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Sum(Amount), Amount,&lt;/P&gt;&lt;P&gt;Sum(Price) as Price,&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Category&lt;/P&gt;&lt;P&gt;from table group by Product, Category;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 05:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198599#M57853</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-03T05:10:32Z</dc:date>
    </item>
    <item>
      <title>Group by Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198600#M57854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please refer the link it will help u in group by and having clause.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/39103.aspx"&gt;http://community.qlik.com/forums/t/39103.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 06:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198600#M57854</guid>
      <dc:creator />
      <dc:date>2011-02-03T06:24:20Z</dc:date>
    </item>
    <item>
      <title>Group by Issues</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198601#M57855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;For a group by function to work you need to things.&lt;/P&gt;&lt;P&gt;First:&lt;/P&gt;&lt;P&gt;You need an aggregation function, such as max(Date) or min(Value)&amp;nbsp; or Count(Item) etc as one of the loaded field.&lt;/P&gt;&lt;P&gt;Second:&lt;/P&gt;&lt;P&gt;You will be allowed to load only those fields, based on whom you are doing the group by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, it will be just &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH(Billing_Date__c) ,&lt;/P&gt;&lt;P&gt;YEAR(Billing_Date__c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-Issues/m-p/198601#M57855</guid>
      <dc:creator />
      <dc:date>2011-07-20T18:38:42Z</dc:date>
    </item>
  </channel>
</rss>

