<?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() used in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065202#M945522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, two distinct Col2_in_Table2 values X and Y where Col1_in_Table1 equals 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are the two columns really located in a single table or two?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 14:31:23 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-11T14:31:23Z</dc:date>
    <item>
      <title>COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065201#M945521</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 a COUNT() statement which looks like this in one of the expressions for a chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ( {&amp;lt;Col1_in_Table1={1}&amp;gt;} DISTINCT Col2_in_Table2 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone let me know if I’m interpreting this statement correctly or not.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if my data looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="237"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Col1_in_Table1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Col2_in_Table2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;Y&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="115"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0 5.4pt 0 5.4pt;" valign="bottom" width="123"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="color: black;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Does the COUNT() in above return 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065201#M945521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065202#M945522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, two distinct Col2_in_Table2 values X and Y where Col1_in_Table1 equals 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are the two columns really located in a single table or two?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065202#M945522</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-11T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065203#M945523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct if you use this expression in, say a text box or a chart or straight table without dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do apply dimensions to your expression, the dimension values may further reduce the result of this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065203#M945523</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-11T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065204#M945524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it returns 2 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem Título.png" class="jive-image image-1" src="/legacyfs/online/111252_Sem Título.png" style="height: 282px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065204#M945524</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-11T14:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065205#M945525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; There are two tables involved here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065205#M945525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065206#M945526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to make sure I understand the syntax as i'm troubleshooting an app that was written by someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065206#M945526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065207#M945527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moreover, as Stefan already indicated, the location may have an impact as well. You seem to place Col1 in Table1 and Col2 in Table2. Two separate tables then. How are rows in each table associated? No association will still return 2 as long as you do not select anything in Col2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065207#M945527</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-11T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065208#M945528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need my qvw? If not, does my answer gave you what you need? If so put it as the correct answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Have nice job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065208#M945528</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-11T14:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065209#M945529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, there's another column which links these two tables.&amp;nbsp; I just gave a very simplied example but thanks for&lt;/P&gt;&lt;P&gt;pointing this out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065209#M945529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065210#M945530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post your qvw.&amp;nbsp; QV is new to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065210#M945530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-11T14:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065211#M945531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Here it is:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065211#M945531</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-11T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT() used in expression</title>
      <link>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065212#M945532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Yes, there's another column which links these two tables.&amp;nbsp; I just gave a very simplied example but thanks for&lt;/P&gt;
&lt;P&gt;pointing this out.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then the answer will depend on the link between the two tables. A simplified example might not give the same answer as your real data then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/COUNT-used-in-expression/m-p/1065212#M945532</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-11T14:58:17Z</dc:date>
    </item>
  </channel>
</rss>

