<?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 issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375194#M139740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diego,&lt;/P&gt;&lt;P&gt;It can be count1 + count2, or sum(aggr(count(...),Vendor))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 01:24:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-31T01:24:40Z</dc:date>
    <item>
      <title>Count issues</title>
      <link>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375191#M139737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks, I need again help for this forum. Now I'm facing issues with a count sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count using some filters but the result is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having the next sentence:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vendor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'AAA'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MSR Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TotalRoom&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '#,##0') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The idea is to get how many different MSRCustomerName&amp;amp;TotalRoom do we have for vendor AAA. The reason why I'm concatenating CustomerName and TotalRoom is 'cos we do have duplicated customername, so adding the numbers of room I can see individuals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the previous sentece is returning 4 as a result, meanwhile the next one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vendor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Other'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MSR Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TotalRoom&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '#,##0') &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return 12. So far I now that the result is not right but the extrange behavior is when I try the next sentence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vendor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MSR Customer Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TotalRoom&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '#,##0') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is for getting the whole quantity of customers. This one is returning 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, any idea or suggestion to fix this issue would be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: BTW, I only have 2 vendors in my DB. AAA &amp;amp; Other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 01:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375191#M139737</guid>
      <dc:creator />
      <dc:date>2012-07-31T01:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count issues</title>
      <link>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375192#M139738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is nothing strange about it.&amp;nbsp; If AAA returns 4, and Other returns 12, the whole count can be anywhere between 12 (if &lt;STRONG&gt;all &lt;/STRONG&gt;4 AAA exist in Other as well)&amp;nbsp; and 16 (if AAA and other have &lt;STRONG&gt;no overlaps&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 01:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375192#M139738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-31T01:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count issues</title>
      <link>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375193#M139739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                You right! I didn’t think in that way. Do you know then how can I get the sum of both? It could be literal Count1 + Count2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego Esteban Adum&lt;/P&gt;&lt;P&gt;APLA BI Manager&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 01:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375193#M139739</guid>
      <dc:creator />
      <dc:date>2012-07-31T01:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count issues</title>
      <link>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375194#M139740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diego,&lt;/P&gt;&lt;P&gt;It can be count1 + count2, or sum(aggr(count(...),Vendor))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 01:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-issues/m-p/375194#M139740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-31T01:24:40Z</dc:date>
    </item>
  </channel>
</rss>

