<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420163#M156329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you are right, it should be 8...I already corrected it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 03:02:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-10T03:02:01Z</dc:date>
    <item>
      <title>Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420160#M156326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following values in a table&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26599" alt="1.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/26599_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I am looking to add the values in the to_send column for every [id Campaña].&lt;/P&gt;&lt;P&gt;The result I am expecting is 8:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 [id Campaña=2] + 3 [id Campaña=3] + 2 [id Campaña=4] = 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to use the aggr function: AGGR(SUM(to_send),[id Campaña])&amp;nbsp; but I couldn't get that result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas con how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 00:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420160#M156326</guid>
      <dc:creator />
      <dc:date>2012-12-10T00:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420161#M156327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there's always just one unique to_send value for each Campana, then you should be able to do:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(AGGR(SUM(distinct to_send),[id Campaña]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;or you could use Max() (or min() &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum(AGGR(MAX(to_send),[id Campaña]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 01:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420161#M156327</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-10T01:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420162#M156328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shudn't u expect 8 instead of 6, 3+3+2=8&lt;/P&gt;&lt;P&gt;Why 6 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 02:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420162#M156328</guid>
      <dc:creator />
      <dc:date>2012-12-10T02:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420163#M156329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you are right, it should be 8...I already corrected it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 03:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420163#M156329</guid>
      <dc:creator />
      <dc:date>2012-12-10T03:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420164#M156330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help Johannes..it's working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 03:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/420164#M156330</guid>
      <dc:creator />
      <dc:date>2012-12-10T03:06:04Z</dc:date>
    </item>
  </channel>
</rss>

