<?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 Re: GROUP BY ERROR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4376#M608333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You dont require group by here i believe. Group by world only aggregate functions only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 00:03:08 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2018-01-23T00:03:08Z</dc:date>
    <item>
      <title>GROUP BY ERROR</title>
      <link>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4374#M608331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me on the error below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;Aggregation expressions required by GROUP BY clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;Operational_Report:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'US' AS 'Region',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Delivery Number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Order],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Brand],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Items Number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Packages Number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date([Order Transmission Date]) AS [Data arrivo ordine],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date([Order Shipping Date]) AS [Data evasione ordine],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Actual Weight],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Billed Weight],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Billed cost],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Ship Via Method],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Last Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name] &amp;amp; [Customer Last Name] AS [Customer Full Name],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Destination town],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Ship To State],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Ship To Zip]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;FROM [lib://Reportistica/@US ME - Operational Report/*.xls]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;(biff, embedded labels, table is [Operational Report$])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;GROUP BY [Delivery Number];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to group this collection of Excel files (Operational Reports) by the Delivery Number.&lt;/P&gt;&lt;P&gt;The fact is that one Delivery Number may be present in more than 1 row if that Delivery has been shipped with 2 or more Packages.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="110" style="width: 764px; height: 78px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl70" height="57" width="92"&gt;Delivery Number&lt;/TD&gt;&lt;TD class="xl71" width="93"&gt;Number of Items&lt;/TD&gt;&lt;TD class="xl71" width="102"&gt;Number of Packages&lt;/TD&gt;&lt;TD class="xl70" width="172"&gt;Order Transmission Date&lt;/TD&gt;&lt;TD class="xl70" width="168"&gt;Order Shipping Date&lt;/TD&gt;&lt;TD class="xl70" width="168"&gt;Actual Weight&lt;/TD&gt;&lt;TD class="xl70" width="168"&gt;Billed Weight&lt;/TD&gt;&lt;TD class="xl70" width="168"&gt;Billed cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20" width="92"&gt;218388&lt;/TD&gt;&lt;TD align="right" class="xl72" width="93"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl72" width="102"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" width="172"&gt;2/21/2017&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;2/21/2017&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;15.4&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;25.67&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="20" width="92"&gt;218388&lt;/TD&gt;&lt;TD align="right" class="xl72" width="93"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl72" width="102"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl73" width="172"&gt;2/21/2017&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;2/21/2017&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;15.4&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl73" width="168"&gt;&lt;SPAN style="text-align: -webkit-right;"&gt;25.67&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delivery Number 218388 is reported twice because it consisted of 2 packages.&lt;/P&gt;&lt;P&gt;However, I want to gather data by Delivery Number (218388) and keep 2 as Number of Packages, 4 as Number of Items, 15.4 as Actual Weight, 8 as Billed Weight, and 25.67 as Billed cost.&lt;/P&gt;&lt;P&gt;Practically speaking, I want to consider only 1 row per each Delivery Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on the matter will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 11:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4374#M608331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-21T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: GROUP BY ERROR</title>
      <link>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4375#M608332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guiseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really don't want to aggregate any of the fields, than you can use DISTINCT qualifier after the LOAD, without the need to put GROUP BY statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operational_Report:&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'US' AS 'Region',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Delivery Number],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... rest of the fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use GROUP BY only when you want to aggregate (summarize) some of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Radovan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4375#M608332</guid>
      <dc:creator>RadovanOresky</dc:creator>
      <dc:date>2018-01-22T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: GROUP BY ERROR</title>
      <link>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4376#M608333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You dont require group by here i believe. Group by world only aggregate functions only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 00:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GROUP-BY-ERROR/m-p/4376#M608333</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-01-23T00:03:08Z</dc:date>
    </item>
  </channel>
</rss>

