<?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: How to count records that belong to numeric ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740892#M264635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(if(Upper(qdata)=Lower(qdata),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 02:34:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-16T02:34:07Z</dc:date>
    <item>
      <title>How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740891#M264634</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 the following data in my Qlikview data model.&amp;nbsp; I need to find the attendance of the student belonging to CME.&lt;/P&gt;&lt;P&gt;I can get the numerator &lt;EM&gt;(I use set analysis and filter by QuestionType (CME) and QuestionData (1))&lt;/EM&gt; but not the denominator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Denominator: I need to count the total number of rows that belong to each student under QuestionType (CME). &lt;/P&gt;&lt;P&gt;Example.&amp;nbsp; I should get 3 counts for student A belonging to CME.&amp;nbsp; Any one can help on this?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Chun Wey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/73557_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 02:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740891#M264634</guid>
      <dc:creator />
      <dc:date>2014-12-16T02:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740892#M264635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(if(Upper(qdata)=Lower(qdata),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 02:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740892#M264635</guid>
      <dc:creator />
      <dc:date>2014-12-16T02:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740893#M264636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 02:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740893#M264636</guid>
      <dc:creator />
      <dc:date>2014-12-16T02:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740894#M264637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(-IsNum(QuestionData))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 02:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740894#M264637</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-16T02:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740895#M264638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, Ramkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mange to do this as I need to further filter by questiontype.&amp;nbsp; Have to do a count instead of sum as I am counting the no of records belonging to numeric values.&amp;nbsp; Only concern here is the performance as I am using IF statement &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(IF(QuestionType='CME' AND IsNum(QuestionData)=-1,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp; However, if you have better suggestion on the above expression, will be more happy to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rdgs,&lt;/P&gt;&lt;P&gt;Chun Wey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 05:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740895#M264638</guid>
      <dc:creator />
      <dc:date>2014-12-16T05:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740896#M264639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 06:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740896#M264639</guid>
      <dc:creator />
      <dc:date>2014-12-16T06:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to count records that belong to numeric ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740897#M264640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be no difference between sum() and count() if if the data is "1". I just find count() easier in this case to avoid the if().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To also filter on the QuestionType, add a Set expression.&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: 12.7272720336914px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;QuestionType={CME}&lt;/SPAN&gt;&amp;gt;}-IsNum(QuestionData))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-count-records-that-belong-to-numeric/m-p/740897#M264640</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-16T17:38:36Z</dc:date>
    </item>
  </channel>
</rss>

