<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237005#M88115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="background-color:#ffffff;margin:8px;font-family:Arial, Helvetica, sans-serif;color:#000000;font-size:12px;background-origin:initial;background-clip:initial;"&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;sorry I was in hurry so i didn't put enought information to explain what i need.&lt;/P&gt;&lt;P&gt;I attach a QV with the data example. The scenario is:&lt;/P&gt;&lt;P&gt;I need to divide the customers in 3 categories: New, New on Existing, Existing. The meanings are:&lt;/P&gt;&lt;P&gt;- New = For customers that have sales = 0 in year 2009 I should show the sales of 2010 (month by month)&lt;/P&gt;&lt;P&gt;- New on Existing = For customers that have sales &amp;gt; 0 on year 2009 I should show the amount of sales only for the products where the total sales in 2009 = 0&lt;/P&gt;&lt;P&gt;- Existing = sales 2010 - New on Existing - New&lt;/P&gt;&lt;P&gt;Hope that now is clear.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 11:21:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-18T11:21:00Z</dc:date>
    <item>
      <title>Aggregate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237003#M88113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following formula in a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Sum( total &amp;lt;Clienti.CliRiferimento&amp;gt; if(right(Competenza,4) = $(vAnnoRiferimento)-1, FatNetto_AP, 0))&amp;gt;0,&lt;/P&gt;&lt;P&gt;if(sum(total &amp;lt;Clienti.CliRiferimento, CoGe&amp;gt; if(right(Competenza,4) = $(vAnnoRiferimento)-1, FatNetto_AP))=0,&lt;/P&gt;&lt;P&gt;(sum(FatNetto))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;the pivot result as this:&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/-2576_sourceID:2576" /&gt;&lt;/P&gt;&lt;P&gt;so the total are wrong in all column. If I change the table to stright and set Sum of Rows as total is working fine.&lt;/P&gt;&lt;P&gt;I tried some sum(aggr(.... but without getting the total running.&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 08:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237003#M88113</guid>
      <dc:creator />
      <dc:date>2010-10-14T08:34:12Z</dc:date>
    </item>
    <item>
      <title>Aggregate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237004#M88114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see what dimensions your table uses, so all I can tell you is the general approach:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(YourCurrentExpressionHere, YourDimension1, YourDimension2, etc.))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Oct 2010 20:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237004#M88114</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-15T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Aggregate problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237005#M88115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="background-color:#ffffff;margin:8px;font-family:Arial, Helvetica, sans-serif;color:#000000;font-size:12px;background-origin:initial;background-clip:initial;"&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;sorry I was in hurry so i didn't put enought information to explain what i need.&lt;/P&gt;&lt;P&gt;I attach a QV with the data example. The scenario is:&lt;/P&gt;&lt;P&gt;I need to divide the customers in 3 categories: New, New on Existing, Existing. The meanings are:&lt;/P&gt;&lt;P&gt;- New = For customers that have sales = 0 in year 2009 I should show the sales of 2010 (month by month)&lt;/P&gt;&lt;P&gt;- New on Existing = For customers that have sales &amp;gt; 0 on year 2009 I should show the amount of sales only for the products where the total sales in 2009 = 0&lt;/P&gt;&lt;P&gt;- Existing = sales 2010 - New on Existing - New&lt;/P&gt;&lt;P&gt;Hope that now is clear.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 11:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-problem/m-p/237005#M88115</guid>
      <dc:creator />
      <dc:date>2010-10-18T11:21:00Z</dc:date>
    </item>
  </channel>
</rss>

