<?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 of distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879801#M1013545</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;Yes, but it is aggreated function for that you required &lt;STRONG&gt;Group by clause&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below test script ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; no,ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23,1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43,1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54,2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000,2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99,1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;t2:&lt;BR /&gt;LOAD count(no) as count_no,&lt;BR /&gt;ID&lt;BR /&gt;Resident t1&lt;BR /&gt;Group by ID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DROP Table t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 05:29:25 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2015-04-22T05:29:25Z</dc:date>
    <item>
      <title>count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879797#M1013541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a field called period. i want count to the distinct count in script level . i don't want create in UI level test object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879797#M1013541</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2015-04-22T05:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879798#M1013542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT CustomerCode)&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 MonthName(Date)), CustomerCode ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=COUNT(TOTAL&amp;lt;Customer&amp;gt; DISTINCT Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879798#M1013542</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-22T05:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879799#M1013543</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;If you need to count in script&lt;/P&gt;&lt;P&gt;then in script add count(fieldname) as count_fieldName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Count is aggreated function for that you required group by clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879799#M1013543</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-22T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879800#M1013544</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;count works in script level ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879800#M1013544</guid>
      <dc:creator>maniram23</dc:creator>
      <dc:date>2015-04-22T05:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879801#M1013545</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;Yes, but it is aggreated function for that you required &lt;STRONG&gt;Group by clause&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below test script ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; no,ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23,1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43,1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54,2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000,2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99,1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;t2:&lt;BR /&gt;LOAD count(no) as count_no,&lt;BR /&gt;ID&lt;BR /&gt;Resident t1&lt;BR /&gt;Group by ID&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;DROP Table t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879801#M1013545</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-22T05:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879802#M1013546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can , but it should be aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879802#M1013546</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2015-04-22T05:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: count of distinct</title>
      <link>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879803#M1013547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need distinct count of a field, you can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;t1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; no,ID&lt;BR /&gt; 23,1&lt;BR /&gt; 43,1&lt;BR /&gt; 54,2&lt;BR /&gt; 1000,2&lt;BR /&gt; 99,1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ID&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; t1; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-of-distinct/m-p/879803#M1013547</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-22T05:37:27Z</dc:date>
    </item>
  </channel>
</rss>

