<?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 can't get the sum using count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291029#M1194875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;&lt;STRONG&gt;Good afternoon,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kindly ask some help for the following problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart straight table with one dimension which is the month and several expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the below picture the value in the last column, named "count", is not the total of the four columns 2008, 2009, 2010 and 2011:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled-1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5234_Untitled-1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I am sorry I can't manage to attached a small qvw file. I tried but I could not reproduce the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried on a different example it seemed to me that the last column will count only the distinct [Serial Number].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2011 14:04:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-15T14:04:13Z</dc:date>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291029#M1194875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;&lt;STRONG&gt;Good afternoon,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kindly ask some help for the following problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart straight table with one dimension which is the month and several expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the below picture the value in the last column, named "count", is not the total of the four columns 2008, 2009, 2010 and 2011:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled-1.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5234_Untitled-1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I am sorry I can't manage to attached a small qvw file. I tried but I could not reproduce the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried on a different example it seemed to me that the last column will count only the distinct [Serial Number].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 14:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291029#M1194875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-15T14:04:13Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291030#M1194876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you really want to build your chart as yiou have shown, that is "hardcoding" each expression than you may be able achieve your result by using this in your expression for total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year={'2008'}&amp;gt; [Serial Number]) + count({$&amp;lt;Year={'2009'}&amp;gt; [Serial Number]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+ count({$&amp;lt;Year={'2010'}&amp;gt; [Serial Number]) + count({$&amp;lt;Year={'2011'}&amp;gt; [Serial Number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but why don't you just create a pivot table with month and year as dimensions and count([Serial Number]) as the expression? Will this not do the trick?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 15:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291030#M1194876</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-15T15:52:28Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291031#M1194877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that you may have the same [Serial Number] in different years. So when you use the Count in the last column, it will count the Total Serial numbers in the last 4 years.&lt;/P&gt;&lt;P&gt;It'd be easier if you use a pivot table, with 2 dimensions: Month (as the left dimension) and Year. Then use the expression Count([Serial Number]). Finally go to the Presentation tab and check Show Partial Sums option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 16:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291031#M1194877</guid>
      <dc:creator />
      <dc:date>2011-06-15T16:13:01Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291032#M1194878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would have to sum the totals for each year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( Aggr( Count( [Serial Number] ), Year ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 17:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291032#M1194878</guid>
      <dc:creator />
      <dc:date>2011-06-15T17:15:30Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291033#M1194879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your suggestion, although it does not seem to work in my example. Unfortunately I can't post a .qvw example. It would be much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 05:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291033#M1194879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-16T05:53:04Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291034#M1194880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jbpvuurens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your suggestion, but does not seem to work in my example. As I wrote to Pat I am sorry I can't manage to post a .qvw example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 05:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291034#M1194880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-16T05:57:13Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291035#M1194881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;scarrasco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your suggestion. I tried but does not seem to work. You are right, that's seems to be the problem: it counts only the distinct serial number.&amp;nbsp; I am sorry I can't manage to post a .qvw example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291035#M1194881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-16T06:01:21Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291036#M1194882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jbpvuurens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I adjusted my example and made more test ausing your suggestion and and it works !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291036#M1194882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-16T06:26:02Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291037#M1194883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Well I wanted to respond by saying I'm surprised it doesnt work for you, but think you managed to get it working now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291037#M1194883</guid>
      <dc:creator />
      <dc:date>2011-06-16T06:26:47Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291038#M1194884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; np, glad it helped you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291038#M1194884</guid>
      <dc:creator />
      <dc:date>2011-06-16T06:27:36Z</dc:date>
    </item>
    <item>
      <title>can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291039#M1194885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;EM&gt;&lt;STRONG&gt;Jeroen,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I could not post a .qvw it took me sometime to have it working, I made my first comment when I tried &lt;/P&gt;&lt;P&gt;Sum( Aggr( Count( [Serial Number] ), Year ) )&lt;/P&gt;&lt;P&gt;that did not work in my .qvw file&lt;/P&gt;&lt;P&gt;then I needed to adjust it to&lt;/P&gt;&lt;P&gt;Sum( Aggr( Count( [Serial Number] ), Month ) )&lt;/P&gt;&lt;P&gt;in order to have it working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your suggestion I learnt how to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM&amp;nbsp;&amp;nbsp; AGGR&amp;nbsp;&amp;nbsp; COUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and ,once more, how important is to try to post a .qvw file. But this time I could not manage to reduce it to a file that could be published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291039#M1194885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-16T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: can't get the sum using count</title>
      <link>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291040#M1194886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well actually, I'm still working with the personal edition, eagerly awaiting license keys. So what I do for my questions is create a tiny example with an inline dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy to hear you understand how it works! Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/can-t-get-the-sum-using-count/m-p/291040#M1194886</guid>
      <dc:creator />
      <dc:date>2011-06-16T06:53:48Z</dc:date>
    </item>
  </channel>
</rss>

