<?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: Count Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357432#M492973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Expression suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl : =sum(aggr(count(distinct PersonID),Date)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 15:05:46 GMT</pubDate>
    <dc:creator>hkg_qlik</dc:creator>
    <dc:date>2012-06-18T15:05:46Z</dc:date>
    <item>
      <title>Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357425#M492966</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;The business rule is that If i login multiple times on the same date the count of PersonID associated with me should be one for that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Currently I am have issue with that when I am trying to show the count of PersonID in terms of Month - year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am using date field and counting the PersonID its giving me a correct count as i can do distinct and count the no. of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the attached .qvw and the excel data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357425#M492966</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2012-06-18T13:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357426#M492967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use expression as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT PersonID&amp;amp;Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357426#M492967</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-06-18T13:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357427#M492968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(aggr(PersonID,Date))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357427#M492968</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-18T13:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357428#M492969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried both the expression but the count which reflects in the table with date(Marked Orange) which is 121 should match when I am showing it by Month and Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357428#M492969</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2012-06-18T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357429#M492970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use my expression in your tables using Month or Year as dimension, I get 15 as result, which seems to me the correct answer. What do you get /expect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357429#M492970</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-18T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357430#M492971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You should rewrite your expression as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(DISTINCT PersonID) &amp;gt; 0, Count(DISTINCT PersonID&amp;amp;Date))&lt;/P&gt;&lt;P&gt;because you have calendar months without person id mapped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357430#M492971</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-06-18T13:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357431#M492972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(aggr(PersonID,Date,PersonID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(count(distinct PersonID),Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 14:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357431#M492972</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-18T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count Error</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357432#M492973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the Expression suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl : =sum(aggr(count(distinct PersonID),Date)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 15:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Error/m-p/357432#M492973</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2012-06-18T15:05:46Z</dc:date>
    </item>
  </channel>
</rss>

