<?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 count on rows in object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249793#M94881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following challange:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i table diagram has (amongst others) a column that can either have the value 0, 1 or 2.&lt;/P&gt;&lt;P&gt;the value of this field is determined by a formula using some if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far, so good. i want to count all rows in this table that are 0, all rows that are 1 and all &lt;/P&gt;&lt;P&gt;rows that are 2 and store these numbers in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can this be done ? can it be done at all ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 11:42:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-14T11:42:37Z</dc:date>
    <item>
      <title>count on rows in object</title>
      <link>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249793#M94881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following challange:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i table diagram has (amongst others) a column that can either have the value 0, 1 or 2.&lt;/P&gt;&lt;P&gt;the value of this field is determined by a formula using some if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far, so good. i want to count all rows in this table that are 0, all rows that are 1 and all &lt;/P&gt;&lt;P&gt;rows that are 2 and store these numbers in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can this be done ? can it be done at all ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249793#M94881</guid>
      <dc:creator />
      <dc:date>2011-10-14T11:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: count on rows in object</title>
      <link>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249794#M94882</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;&lt;/P&gt;&lt;P&gt;You have to check the values like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar1 = Count(If(Coulmn = 0 ,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar2 = Count(If(Coulmn = 1 ,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVar3 = Count(If(Coulmn = 2 ,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 0,1,2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249794#M94882</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-10-14T11:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: count on rows in object</title>
      <link>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249795#M94883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the label of the expression within another expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum(If([Count1] = 1, 1, 0))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where [Count1] is the label of the expression used to count 0 values. You might try to transform those If() to set analysis without loss of information and use it in this another expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 11:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249795#M94883</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-14T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: count on rows in object</title>
      <link>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249796#M94884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Anand: Thank for the reply, but where do i put this piece of code ? If i try this on a variable, i get the error msg that Column (i replaced it with my real column name used in the diagram object) is not a valid field name. Maybe its important to understand that the column with the 0,1, and 2s is based on a formula. This field does not exist in my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Miguel: Thanks a lot. This reads interesting. Can you clarify / explain please what you mean by "Where [Count1] is the label of the expression used to count 0 values." ? As i mentioned above: Thie field i am looking at is not part of my data model. I create it only in this diagram table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope my problem became clear....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 12:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-on-rows-in-object/m-p/249796#M94884</guid>
      <dc:creator />
      <dc:date>2011-10-14T12:29:27Z</dc:date>
    </item>
  </channel>
</rss>

