<?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(Distinct()) with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482478#M481686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, guys, it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 06:33:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-27T06:33:43Z</dc:date>
    <item>
      <title>Count(Distinct()) with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482475#M481683</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;I want to use COUNT(DISTINCT()) to calculate the number of clients that bought a certain product. I am using this formula, but the numbers are weird, it's not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(CPRODUS='A19', COUNT(DISTINCT(CCLIENT)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What to i do wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 10:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482475#M481683</guid>
      <dc:creator />
      <dc:date>2013-09-26T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Distinct()) with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482476#M481684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi Laura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I hope this is what you are looking for. Here goes -&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can use&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;IF(CPRODUS='A19', COUNT(DISTINCT CCLIENT)) OR &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({$&amp;lt;CPRODUS={'A19'}&amp;gt;} distinct CCLIENT) OR // value changes based on selections&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({1&amp;lt;CPRODUS={'A19'}&amp;gt;} distinct CCLIENT) // value remains same regardless of selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But the correct value will still depend on which chart you are using and what dimensions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Cheers,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 05:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482476#M481684</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2013-09-27T05:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Distinct()) with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482477#M481685</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;Can you try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(if(CPRODUS='A19',DISTINCT(CCLIENT)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rajesh Vaswani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 06:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482477#M481685</guid>
      <dc:creator>rajeshvaswani77</dc:creator>
      <dc:date>2013-09-27T06:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count(Distinct()) with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482478#M481686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, guys, it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 06:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Distinct-with-condition/m-p/482478#M481686</guid>
      <dc:creator />
      <dc:date>2013-09-27T06:33:43Z</dc:date>
    </item>
  </channel>
</rss>

