<?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 Null, Count Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430658#M430392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2017 06:33:56 GMT</pubDate>
    <dc:creator>prma7799</dc:creator>
    <dc:date>2017-09-18T06:33:56Z</dc:date>
    <item>
      <title>If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430654#M430388</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 have this expression but gives me a "No Data to Display" can you help me out on this? I'm not familiar with set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=If(Not Isnull([Name]), Count (DISTINCT [Skill]), Null())&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want is this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If Name is not null then count their distinct skills. If the condition is not satisfied then return null.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I hope you folk can help me out here. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430654#M430388</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-18T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430655#M430389</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;&amp;nbsp;&amp;nbsp; Try&amp;nbsp; This: In Script:&amp;nbsp; &lt;EM&gt;If (Isnull([Name]), Null(),&lt;EM&gt;[Name]&lt;/EM&gt;) as Emp_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;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On UI&amp;nbsp; :&amp;nbsp; &lt;EM&gt;Count (DISTINCT [Skill])&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;Thanks &amp;amp; Regards,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;Ashwini &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430655#M430389</guid>
      <dc:creator>ashwinishinde</dc:creator>
      <dc:date>2017-09-18T06:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430656#M430390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&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;=If(len(trim([Name]))&amp;gt;0, Count (DISTINCT [Skill]), Null())&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430656#M430390</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-09-18T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430657#M430391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still get No Data to Display. I think Set-analysis is the solution to this. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430657#M430391</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-18T06:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430658#M430392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430658#M430392</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-09-18T06:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430659#M430393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&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;=Count(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DISTINCT &lt;/EM&gt; If(len(trim([Name]))&amp;gt;0, [Skill]))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430659#M430393</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-18T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430660#M430394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try like this&lt;/P&gt;&lt;P&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;=If(isnull([Name]), Count (DISTINCT [Skill]), Null())&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430660#M430394</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-09-18T06:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430661#M430395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco for answering, but the result are the same. I get the count of all skills even when the name is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430661#M430395</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-18T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430662#M430396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176891_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I still get the No data to Display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430662#M430396</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-09-18T06:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430663#M430397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share some sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 06:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430663#M430397</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2017-09-18T06:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430664#M430398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if this works:&lt;/P&gt;&lt;P&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;STRONG&gt;=Count(&lt;EM style="font-weight: inherit;"&gt;DISTINCT {&amp;lt;[&lt;/EM&gt;Skill]={"=len(trim([Name]))&amp;gt;0"}&amp;gt;} [Skill]))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 08:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430664#M430398</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-18T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430665#M430399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;={*}&amp;gt;} DISTINCT Skill) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430665#M430399</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-09-18T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430666#M430400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to create the Flag in script,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(len(trim(Name))&amp;gt;0,1,0) as NameFlag&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can use the set analysis like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count(distinct{&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;NameFlag={1}&lt;/SPAN&gt;&amp;gt;}Skill)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or set analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count(DISTINCT{&amp;lt;Name ={*}&amp;gt;}Skill)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430666#M430400</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-09-18T09:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: If Null, Count Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430667#M430401</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;/P&gt;&lt;P&gt;=count( if(IsNull(Field),Dim))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-Count-Distinct/m-p/1430667#M430401</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-09-18T09:52:56Z</dc:date>
    </item>
  </channel>
</rss>

