<?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: Problems with Aggr() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389423#M145317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main dimension is SalesID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for Mgn formula is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;}Total&amp;nbsp; IMPORTBRUT+CTEFISICO+CAMPAÑA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the aggr did not works gggrrrrrr!! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the result in the table is the following&lt;IMG __jive_id="32894" class="jive-image" alt="table.jpg" src="https://community.qlik.com/legacyfs/online/32894_table.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 15:42:55 GMT</pubDate>
    <dc:creator>ecabanas</dc:creator>
    <dc:date>2013-01-31T15:42:55Z</dc:date>
    <item>
      <title>Problems with Aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389420#M145314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I'm doing a pivot with that and it works perfectly, but did not add correctly the total, I&amp;nbsp; tryied several combinations with aggr, but it doesn't work, HELPPP PLEASEEE! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;} IMPORTBRUT+CTEFISICO+CAMPANA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389420#M145314</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2013-01-31T12:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389421#M145315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;}Total&amp;nbsp; IMPORTBRUT+CTEFISICO+CAMPANA)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389421#M145315</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-01-31T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389422#M145316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's hard to answer without knowing your setting. If you want to do a sum-of-rows in a pivot using aggr(), try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( aggr( Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;} IMPORTBRUT+CTEFISICO+CAMPANA), YOURTABLEDIMENSIONFIELDS ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace YOURTABLEDIMENSIONFIELDS with the list of your table dimensions (fields only, no calculated dims).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: There is an chapter in the HELP about this, please refer to it for more detail.&lt;/P&gt;&lt;P&gt;And you may need to also use the set expression in the outer aggregation function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum( {&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;} &lt;/P&gt;&lt;P&gt;aggr( Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;} IMPORTBRUT+CTEFISICO+CAMPANA), YOURTABLEDIMENSIONFIELDS )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389422#M145316</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-31T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389423#M145317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main dimension is SalesID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for Mgn formula is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;SALESID =p(),DES_SUB1= &amp;gt;}Total&amp;nbsp; IMPORTBRUT+CTEFISICO+CAMPAÑA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the aggr did not works gggrrrrrr!! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the result in the table is the following&lt;IMG __jive_id="32894" class="jive-image" alt="table.jpg" src="https://community.qlik.com/legacyfs/online/32894_table.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389423#M145317</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2013-01-31T15:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Aggr()</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389424#M145318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few ideas to explore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I suspect that one of the three fields tht you add up, might have a NULL value. try using RangeSum() instead of a simple addition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {...} rangesum(A,B,C))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SALESID is your dimension, and at the same time you are using it in Set Analysis - that's not always a good combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You have an additional condition on DES_SUB1 (disregarding user selections). Are you applying the same condition on all the columns in your chart? If you don't then the results could look illogical - some of the columns may or may not disregard used selections, while the total always disregards ... Maybe that's what causes the confusion? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Aggr/m-p/389424#M145318</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-01-31T16:15:44Z</dc:date>
    </item>
  </channel>
</rss>

