<?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 Wrong count totals ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337337#M571790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a simple table showing a count of work activities by type (down) and month (across). The expression is simply: count(distinct activity). I am using distinct because for each day there are two records, morning activity and afternoon activity, but I am not interested in this split to be shown in this table.&lt;/P&gt;&lt;P&gt;The issue is that if I add totals they are wrong. What i am looking for is just the sum of the row values (counts), but the totals are different.&lt;/P&gt;&lt;P&gt;Any clue ? how can I get the right totals ? I have noticed that in object Properties totalization rules are grayed when the expression is a count, I don't understand why.&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Ver. 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 15:06:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-03T15:06:51Z</dc:date>
    <item>
      <title>Wrong count totals ?</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337337#M571790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a simple table showing a count of work activities by type (down) and month (across). The expression is simply: count(distinct activity). I am using distinct because for each day there are two records, morning activity and afternoon activity, but I am not interested in this split to be shown in this table.&lt;/P&gt;&lt;P&gt;The issue is that if I add totals they are wrong. What i am looking for is just the sum of the row values (counts), but the totals are different.&lt;/P&gt;&lt;P&gt;Any clue ? how can I get the right totals ? I have noticed that in object Properties totalization rules are grayed when the expression is a count, I don't understand why.&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;Nik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Ver. 9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 15:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337337#M571790</guid>
      <dc:creator />
      <dc:date>2012-08-03T15:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong count totals ?</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337338#M571791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're using a pivot table the different types of expression totals are greyed out.&lt;/P&gt;&lt;P&gt;The distinct count totals might be different since a certain activity might show up for both Jan and Feb but since we only calculate distinct values the total will just show 1 instance for the activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll want to use aggr() in your expression to aggregate the counts over each dimension combination and then sum them up. Something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(aggr(count(distinct activity), type, month))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 02:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337338#M571791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T02:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong count totals ?</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337339#M571792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 09:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-count-totals/m-p/337339#M571792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-20T09:12:24Z</dc:date>
    </item>
  </channel>
</rss>

