<?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: If-Sum then Count Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396421#M423844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Element = 'Nature' and HP &amp;lt;= 1000, Count(Distinct Name))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Element = {Nature}, HP = {'&amp;lt;=1000'}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 08:01:06 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-12T08:01:06Z</dc:date>
    <item>
      <title>If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396419#M423842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Can you help me out on my problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table and text box. Here's what I need. I want to show in my text box the distinct count of people having a specified criteria and condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to give you an idea, here's a sample data on my table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; Power&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; Element |&amp;nbsp;&amp;nbsp;&amp;nbsp; HP&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;|&amp;nbsp;&amp;nbsp;&amp;nbsp; Batman&amp;nbsp; |&amp;nbsp; Batpower&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dark&amp;nbsp; | 1000&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;| Spiderman |&amp;nbsp;&amp;nbsp;&amp;nbsp; Web&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp; Nature&amp;nbsp; |&amp;nbsp; 900&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;| Aquaman&amp;nbsp; |Trident Strike|&amp;nbsp;&amp;nbsp;&amp;nbsp; Water&amp;nbsp; |&amp;nbsp; 2000&amp;nbsp; |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my text box I want to show this kind of expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; &lt;EM&gt;Element&lt;/EM&gt; == 'Nature' &lt;STRONG&gt;and&lt;/STRONG&gt; &lt;EM&gt;HP&lt;/EM&gt; &amp;lt;= 1000 &lt;STRONG&gt;Then&lt;/STRONG&gt; &lt;STRONG&gt;Count&lt;/STRONG&gt; &lt;STRONG&gt;Distinct&lt;/STRONG&gt; &lt;EM&gt;Name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you understand my problems... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396419#M423842</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T07:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396420#M423843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct&amp;nbsp; {&amp;lt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Element&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ={'Nature'},&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HP&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ={'&amp;lt;=1000'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396420#M423843</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-09-12T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396421#M423844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Element = 'Nature' and HP &amp;lt;= 1000, Count(Distinct Name))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Element = {Nature}, HP = {'&amp;lt;=1000'}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396421#M423844</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396422#M423845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count(distinct&amp;nbsp; {&amp;lt;&lt;EM&gt;Name ={"=sum({&amp;lt;Element={'Nature'}&amp;gt;}HP)&amp;lt;=1000"}&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;} Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396422#M423845</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-09-12T08:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396423#M423846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way. I forgot to mention these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Element&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; == 'Nature' &lt;/SPAN&gt;and&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;SPAN style="text-decoration: underline;"&gt;SUM(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;HP)&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &amp;lt;= 1000 &lt;/SPAN&gt;Then&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;Count&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;Distinct&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've put underline on it. I also need to sum up the HP. because some heroes have different HP but same names depending on their levels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396423#M423846</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396424#M423847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to mention I need to sum the HP before I check if it is less than 1000.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Element&lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; == 'Nature' &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;SUM(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;HP)&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &amp;lt;= 1000 &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396424#M423847</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396425#M423848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Element = {Nature}, HP = {"Sum(HP) &amp;lt;=1000"}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396425#M423848</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396426#M423849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, Missed equal sign&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Element = {Nature}, HP = {"=Sum(HP) &amp;lt;=1000"}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396426#M423849</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396427#M423850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping out but All of my text box return's 0 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396427#M423850</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396428#M423851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you don't have data for that? Can you split expression like and tell us which expression returns the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;Element = {Nature}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Count({&amp;lt;HP = {"=Sum(HP) &amp;lt;=1000"}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396428#M423851</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396429#M423852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;35 = Count(DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; 0 = Count({&amp;lt;Element = {Nature}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; 5 = Count({&amp;lt;HP = {"=Sum(HP) &amp;lt;=1000"}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Do you think there's something wrong with my expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396429#M423852</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396430#M423853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, Due to zero issuing facing, May be? Because with in the set analysis , can work as and operator that means It should count when 2 conditions filled. What i state earlier you may not having the Nature as value and Qlik is case sensitive. you can troubleshoot yourself because we don't have any copy file with me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396430#M423853</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396431#M423854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want me to sen you a sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396431#M423854</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396432#M423855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Off course&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396432#M423855</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396433#M423856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might be you are missing ' single quote around value Nature in set analysis &lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;{'Nature'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Count({&amp;lt;Element = {'Nature'}, HP = {"=Sum(HP) &amp;lt;=1000"}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396433#M423856</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-09-12T08:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396434#M423857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe, Without that it works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396434#M423857</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396435#M423858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Element = {&lt;SPAN style="color: #ff0000;"&gt;'*&lt;/SPAN&gt;Nature&lt;SPAN style="color: #ff0000;"&gt;*'&lt;/SPAN&gt;}&amp;gt;} DISTINCT Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this give you a value other than 0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396435#M423858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-12T08:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396436#M423859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please wait, I'll create a legit data so that you can check it for yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396436#M423859</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396437#M423860</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've used a different data but tried to replicate my whole work problem. I hope this will help you out to check why I get these problems. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396437#M423860</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-12T08:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: If-Sum then Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396438#M423861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this? Because, Sum is not proper with in the set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Functional = {'F1'}, Programming = {'P1'}, nAlloc = {"=Sum(Alloc) &amp;lt;= 99"}&amp;gt;} DISTINCT [Resource Name])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Sum-then-Count-Distinct/m-p/1396438#M423861</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T08:55:41Z</dc:date>
    </item>
  </channel>
</rss>

