<?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 Clause and Aggregate function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340418#M413008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Problem lies with '*'. Remove it from your script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ORDER_NO, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLANTOOL_STATUS, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTION_DATE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MACH_PROG_NAME&lt;BR /&gt;FROM&lt;BR /&gt;[Demo\Test Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load &lt;SPAN style="color: #ff0000;"&gt;*, //Remove this star&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(ORDER_NO = peek(ORDER_NO) AND PLANTOOL_STATUS=10, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;ACTION_DATE - PEEK(ACTION_DATE),&lt;/SPAN&gt;0) AS [Wait–Weld Start]&lt;BR /&gt;//sum(ACTION_DATE) AS SUM_ACTION_DATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by ORDER_NO;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 07:09:48 GMT</pubDate>
    <dc:creator>kamal_sanguri</dc:creator>
    <dc:date>2017-06-09T07:09:48Z</dc:date>
    <item>
      <title>Group By Clause and Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340416#M413006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using below script in which I'm finding the difference between current value and previous value by using group by clause but when I'm reloading the script it throwing error as use aggregate function with group by clause. Please help me how can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD ORDER_NO, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLANTOOL_STATUS, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTION_DATE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MACH_PROG_NAME&lt;BR /&gt;FROM&lt;BR /&gt;[Demo\Test Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if(ORDER_NO = peek(ORDER_NO) AND PLANTOOL_STATUS=10, &lt;SPAN style="color: #ff0000;"&gt;ACTION_DATE - PEEK(ACTION_DATE),&lt;/SPAN&gt;0) AS [Wait–Weld Start]&lt;BR /&gt;//sum(ACTION_DATE) AS SUM_ACTION_DATE&lt;/P&gt;&lt;P&gt;Resident Test &lt;/P&gt;&lt;P&gt;Group by ORDER_NO;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 06:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340416#M413006</guid>
      <dc:creator>mahendragaur</dc:creator>
      <dc:date>2017-06-09T06:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Clause and Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340417#M413007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think whether you required Group By Clause over here, Can you change it to order by like&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(ORDER_NO = peek(ORDER_NO) AND PLANTOOL_STATUS=10, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;ACTION_DATE - PEEK(ACTION_DATE),&lt;/SPAN&gt;0) AS [Wait–Weld Start]&lt;BR /&gt;//sum(ACTION_DATE) AS SUM_ACTION_DATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Order by ORDER_NO ASC;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340417#M413007</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-09T07:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Clause and Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340418#M413008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Problem lies with '*'. Remove it from your script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ORDER_NO, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLANTOOL_STATUS, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACTION_DATE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MACH_PROG_NAME&lt;BR /&gt;FROM&lt;BR /&gt;[Demo\Test Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test1:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load &lt;SPAN style="color: #ff0000;"&gt;*, //Remove this star&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(ORDER_NO = peek(ORDER_NO) AND PLANTOOL_STATUS=10, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;ACTION_DATE - PEEK(ACTION_DATE),&lt;/SPAN&gt;0) AS [Wait–Weld Start]&lt;BR /&gt;//sum(ACTION_DATE) AS SUM_ACTION_DATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by ORDER_NO;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 07:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340418#M413008</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2017-06-09T07:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Clause and Aggregate function</title>
      <link>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340419#M413009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, the problem is much wider than simply removing the star from your LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A GROUP BY clause compresses a set of rows into single rows for every value of the fields listed in the GROUP BY clause. That means that you'll have to use aggregation functions on every field NOT present in the GROUP BY clause, including ACTION_DATE and PLANTOOL_STATUS and everything else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 08:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-By-Clause-and-Aggregate-function/m-p/1340419#M413009</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-06-09T08:43:37Z</dc:date>
    </item>
  </channel>
</rss>

