<?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 Need help in Aggregation functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-Aggregation-functions/m-p/195427#M55919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every field must be either in the group by, or calculated using an aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2009 05:19:41 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-12-23T05:19:41Z</dc:date>
    <item>
      <title>Need help in Aggregation functions</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Aggregation-functions/m-p/195426#M55918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need count the days of a customer buy our product and then sum the quantity of product in the month the customer buy to obtain the Average by day by product that this customer is buying.&lt;/P&gt;&lt;P&gt;And then create a Range like:&lt;/P&gt;&lt;P&gt;0 to 5&lt;/P&gt;&lt;P&gt;5 to 10&lt;/P&gt;&lt;P&gt;10 to 15&lt;/P&gt;&lt;P&gt;-.......&lt;/P&gt;&lt;P&gt;over 60.&lt;/P&gt;&lt;P&gt;and calculate how many customer by products average I have in the one of the ranges.&lt;/P&gt;&lt;P&gt;But in the aggregations functions on the load I have the problem that forward:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid expression&lt;/P&gt;&lt;P&gt;Movimientos2009:&lt;/P&gt;&lt;P&gt;LOAD RECNO() AS INDEX,&lt;/P&gt;&lt;P&gt;cod_producto,&lt;/P&gt;&lt;P&gt;cod_cliente,&lt;/P&gt;&lt;P&gt;cod_sucursal,&lt;/P&gt;&lt;P&gt;año,&lt;/P&gt;&lt;P&gt;mes,&lt;/P&gt;&lt;P&gt;dia,&lt;/P&gt;&lt;P&gt;cod_fecha,&lt;/P&gt;&lt;P&gt;cantidad,&lt;/P&gt;&lt;P&gt;kilos,&lt;/P&gt;&lt;P&gt;dolares,&lt;/P&gt;&lt;P&gt;indiventa,&lt;/P&gt;&lt;P&gt;count(distinct dia) as diacompra,&lt;/P&gt;&lt;P&gt;sum(cantidad)/COUNT(DISTINCT dia) as avgsale,&lt;/P&gt;&lt;P&gt;vendedor&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;QVD\movimientos2009.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;group by cod_producto,&lt;/P&gt;&lt;P&gt;mes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 02:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Aggregation-functions/m-p/195426#M55918</guid>
      <dc:creator />
      <dc:date>2009-12-23T02:43:26Z</dc:date>
    </item>
    <item>
      <title>Need help in Aggregation functions</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-Aggregation-functions/m-p/195427#M55919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every field must be either in the group by, or calculated using an aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 05:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-Aggregation-functions/m-p/195427#M55919</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-23T05:19:41Z</dc:date>
    </item>
  </channel>
</rss>

