<?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: distinct row count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729382#M675482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can easily get this done in the UI.&lt;/P&gt;&lt;P&gt;For script just Anand has provided a sample solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 08:20:03 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-07-23T08:20:03Z</dc:date>
    <item>
      <title>distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729379#M675479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;below is the sample table&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;CAL:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Load * INLINE [&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;days,no&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Jan,1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Feb,1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Mar,3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Apr,2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;May,4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Jun,4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Jul,5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Aug,6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Sep,7&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Oct,8&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Nov,9&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: #3366ff;"&gt;Dec,5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;];&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to get thhe distinct count of column "no"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at script level i am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG&gt;let vvar = count(DISTINCT no);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG&gt;trace &amp;gt;&amp;gt;&amp;gt; countof: $(vvar);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;but log file show null&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG style="color: #000000;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;plz provide any solution for the same the required answer should be "9"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 07:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729379#M675479</guid>
      <dc:creator />
      <dc:date>2014-07-23T07:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729380#M675480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAL:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; days, no&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar, 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; May, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jun, 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jul, 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug, 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sep, 7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Oct, 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nov, 9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec, 5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Add this table for distinct count&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cnt:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(DISTINCT no) as No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident CAL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vvar = Peek('No',0,'Cnt');&amp;nbsp; //And store in this variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trace &amp;gt;&amp;gt;&amp;gt; countof: $(vvar);&lt;/P&gt;&lt;P&gt;&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, 23 Jul 2014 07:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729380#M675480</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-23T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729381#M675481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why we need to create a new table (i.e Cnt)?, why it is not possible with "count" command directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 08:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729381#M675481</guid>
      <dc:creator />
      <dc:date>2014-07-23T08:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729382#M675482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can easily get this done in the UI.&lt;/P&gt;&lt;P&gt;For script just Anand has provided a sample solution. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 08:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729382#M675482</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-07-23T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729383#M675483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If manually you create the variable in the front end then you can easily achieve with expression &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier; color: #0000ff;"&gt;vvar = count(DISTINCT no); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in load script you have to refer the table directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 08:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729383#M675483</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-23T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: distinct row count</title>
      <link>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729384#M675484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is from UI &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 09:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/distinct-row-count/m-p/729384#M675484</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-07-23T09:16:26Z</dc:date>
    </item>
  </channel>
</rss>

