<?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 Help with aggregation/group by in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-aggregation-group-by/m-p/247362#M708334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every field that you use in the table where the group by happens, has to be mandatarily included in the where clause.&lt;/P&gt;&lt;P&gt;however the field used in the aggregation (here: Field 3) need not be included in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So assumption is correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 17:50:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-09T17:50:41Z</dc:date>
    <item>
      <title>Help with aggregation/group by</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggregation-group-by/m-p/247361#M708333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a general question about group by statements. Right now I have a table where I want to Group based on OrderId but there are several other Fields. Say OrderId is Field 1, Field 2&amp;nbsp; might have different values but for every OrderId are unique and I have Field 3 which needs to be Summed. So I have the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(Field3) AS Field&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&lt;/P&gt;&lt;P&gt;GROUP BY Field1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement will give an error since i think it is neccessary to include Field2 even tough this field has the same values for each value in Field1. Or I'm I incorrect on this assumption? Can anyone explain the exact rules for the fields which are not aggregated nor grouped but you do want to Load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggregation-group-by/m-p/247361#M708333</guid>
      <dc:creator />
      <dc:date>2011-09-08T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Help with aggregation/group by</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggregation-group-by/m-p/247362#M708334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every field that you use in the table where the group by happens, has to be mandatarily included in the where clause.&lt;/P&gt;&lt;P&gt;however the field used in the aggregation (here: Field 3) need not be included in the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So assumption is correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 17:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggregation-group-by/m-p/247362#M708334</guid>
      <dc:creator />
      <dc:date>2011-12-09T17:50:41Z</dc:date>
    </item>
  </channel>
</rss>

