<?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: aggr() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788453#M278826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr&lt;SPAN style="font-size: 12pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;STRONG&gt;g&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason of this behavior is the missing from an aggegation from field &lt;G&gt; - have a look here why you should always use aggreagtions: &lt;/G&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-blog-small" data-containerid="2588" data-containertype="37" data-objectid="3779" data-objecttype="38" href="http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/16/use-the-aggregation-functions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/16/use-the-aggregation-functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 08:03:23 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-01-30T08:03:23Z</dc:date>
    <item>
      <title>aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788449#M278822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 12pt;"&gt;my data is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 12pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&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;/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;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;g&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[&lt;BR /&gt;Customer, Value&lt;BR /&gt;infy, 20&lt;BR /&gt;tcs, 30&lt;BR /&gt;infy, 10&lt;BR /&gt;tcs, 15&lt;BR /&gt;google, 40&lt;BR /&gt;google, 400&lt;BR /&gt;accenture,353&lt;BR /&gt;ibm,3625&lt;BR /&gt;accenture,245&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr&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;SPAN style="font-size: 12pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;g&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) -&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i get each customer and their corresponding average&lt;/P&gt;&lt;P&gt;but when i&amp;nbsp; use&lt;/P&gt;&lt;P&gt;Aggr&lt;SPAN style="font-size: 12pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;g&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) -&amp;gt;only ibm like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR align="right" bgcolor="#ffffff"&gt;&lt;TD align="left" bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;ibm&lt;/SPAN&gt;&lt;SPAN style="color: #363636;"&gt;453.125&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Can any1 explain y this happens?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 11:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr/m-p/788449#M278822</guid>
      <dc:creator />
      <dc:date>2015-01-29T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788450#M278823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you trying to show the output of the Aggr statement? And what output are you trying to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only assume it's showing IBM as it's the only non-repeated name, and your Aggr statement (unless it's over the dimension g) then can't return a unique value as it's got multiple values for g. Why are you dividing by the row number? Do you mean the second equation to be Count(g) as the first is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 11:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr/m-p/788450#M278823</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-29T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788451#M278824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="temp.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76667_temp.png" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 06:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr/m-p/788451#M278824</guid>
      <dc:creator />
      <dc:date>2015-01-30T06:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788452#M278825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Aaron Morgan&lt;/P&gt;&lt;P&gt;s aaron just i want 2 find out wrkng of aggr func() .&lt;/P&gt;&lt;P&gt;as u can c i used table box fr both charts&lt;/P&gt;&lt;P&gt;i wanted 2 know when i use sum(value)/count(g) -&amp;gt; it is givng average value of all customers and when i use sum(value)/g -&amp;gt; it is giving average value of only the ibm.....how it can behave like tat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 06:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr/m-p/788452#M278825</guid>
      <dc:creator />
      <dc:date>2015-01-30T06:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/aggr/m-p/788453#M278826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr&lt;SPAN style="font-size: 12pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;STRONG&gt;g&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason of this behavior is the missing from an aggegation from field &lt;G&gt; - have a look here why you should always use aggreagtions: &lt;/G&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-blog-small" data-containerid="2588" data-containertype="37" data-objectid="3779" data-objecttype="38" href="http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/16/use-the-aggregation-functions"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/06/16/use-the-aggregation-functions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 08:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr/m-p/788453#M278826</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-01-30T08:03:23Z</dc:date>
    </item>
  </channel>
</rss>

