<?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 Aggr Function in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184107#M49131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;B&gt;aggr(NODISTINCT sum(SALES.tot_neto),SALES.Emis_Month)..&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Buena suerte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Mar 2010 14:01:08 GMT</pubDate>
    <dc:creator>mbernales</dc:creator>
    <dc:date>2010-03-18T14:01:08Z</dc:date>
    <item>
      <title>Aggr Function in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184104#M49128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Starting:&lt;/P&gt;&lt;P&gt;I need to compare sales vs account receivable in a pivot table, sales has 2 dates: emision and due date. The comparison is with the due date, so i have the month as a dimession. So far, no problem.&lt;/P&gt;&lt;P&gt;Everything gets complicated when because in the same pivot table I need the sales at the emision date.So, I've used the aggr function as a dimenssion:&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 180px"&gt;aggr(sum(SALES.tot_neto),SALES.Emis_Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result it's a hyphen (-) in most of the month:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1253_sourceID:1253" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This are the amounts that most be show:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1254_sourceID:1254" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is happening because the main dimenssion (month of the due date) it's diferent to the one in the aggr function (month of the emision date)&lt;/P&gt;&lt;P&gt;How can i solve this? what am i doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 15:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184104#M49128</guid>
      <dc:creator />
      <dc:date>2010-03-17T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Aggr Function in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184105#M49129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Just a hint here, when you use the AGGR function in a table/chart you will get unpredictable results if you do not aggregate over the existing dimensions as well as the additional ones you want. This is because the AGGR function ignores any dimensions currently in the table.&lt;/P&gt;&lt;P&gt;In your example it means that the AGGR function should aggregate over Ano, Vendedor &amp;amp; MES as well as Emis_Month so your expression should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=AGGR ( SUM (SALES.tot_neto ) , ANO , VENDEDOR , MES , SALES.Emis_Month )&lt;BR /&gt;Of course, I'm guessing at your dimension names and just using the labels you have in your pivot, so you should replace those above with the actual field names in use.&lt;BR /&gt;Hope it helps,&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 08:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184105#M49129</guid>
      <dc:creator />
      <dc:date>2010-03-18T08:29:03Z</dc:date>
    </item>
    <item>
      <title>Aggr Function in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184106#M49130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel, thxs for your response...&lt;/P&gt;&lt;P&gt;I still quite not understand the why about aggregate the dimensions of the pivot table to the aggr fucntion but I gave it a try and it did not work.&lt;/P&gt;&lt;P&gt;The hyphens appeared in all the column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea??&lt;/P&gt;&lt;P&gt;Thxs in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 13:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184106#M49130</guid>
      <dc:creator />
      <dc:date>2010-03-18T13:13:46Z</dc:date>
    </item>
    <item>
      <title>Aggr Function in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184107#M49131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;B&gt;aggr(NODISTINCT sum(SALES.tot_neto),SALES.Emis_Month)..&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Buena suerte&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 14:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184107#M49131</guid>
      <dc:creator>mbernales</dc:creator>
      <dc:date>2010-03-18T14:01:08Z</dc:date>
    </item>
    <item>
      <title>Aggr Function in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184108#M49132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried already... no luck! &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;Another way??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thxs!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 14:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-in-Pivot-Table/m-p/184108#M49132</guid>
      <dc:creator />
      <dc:date>2010-03-18T14:42:22Z</dc:date>
    </item>
  </channel>
</rss>

