<?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 aggregate function problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578163#M214990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a table as follows:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-467425-53072/1.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="1.JPG.jpg" class="jive-image jiveImage" height="322" src="https://community.qlik.com/legacyfs/online/53074_1.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="949" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And when I apply the aggregate function on duration as aggr(sum(DURATION),SYSTEM_ID)&amp;nbsp; , I get the values totally scaled up.. I noticed they are multiplied 7 or 6 or 5&amp;nbsp; times than the expected values what could be the reason, the aggregated table is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-467425-53073/2.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="2.JPG.jpg" class="jive-image jiveImage" height="102" src="https://community.qlik.com/legacyfs/online/53075_2.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="441" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 00:34:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-13T00:34:17Z</dc:date>
    <item>
      <title>aggregate function problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578163#M214990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a table as follows:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-467425-53072/1.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="1.JPG.jpg" class="jive-image jiveImage" height="322" src="https://community.qlik.com/legacyfs/online/53074_1.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="949" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And when I apply the aggregate function on duration as aggr(sum(DURATION),SYSTEM_ID)&amp;nbsp; , I get the values totally scaled up.. I noticed they are multiplied 7 or 6 or 5&amp;nbsp; times than the expected values what could be the reason, the aggregated table is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-467425-53073/2.JPG.jpg" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="2.JPG.jpg" class="jive-image jiveImage" height="102" src="https://community.qlik.com/legacyfs/online/53075_2.JPG.jpg" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="441" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 00:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578163#M214990</guid>
      <dc:creator />
      <dc:date>2014-02-13T00:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate function problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578164#M214991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post your doc?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 20:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578164#M214991</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-14T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate function problem</title>
      <link>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578165#M214992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen this in a few cases where there are duplicates.&lt;/P&gt;&lt;P&gt;Just try sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(sum(distinct DURATION),SYSTEM_ID)). This is not a solution but can help identify if there are duplicates in your model. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 20:38:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggregate-function-problem/m-p/578165#M214992</guid>
      <dc:creator />
      <dc:date>2014-02-14T20:38:27Z</dc:date>
    </item>
  </channel>
</rss>

