<?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 function and expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418835#M801661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is aVar a field or variable? If it is a field, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;aVar = {"Past*"}&amp;gt;} aVar)/Count(aVar)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2017 16:30:08 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-04T16:30:08Z</dc:date>
    <item>
      <title>Count function and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418834#M801660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finding some difficulty in using the count function, but using an expression to define what to count. Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #0000ff;"&gt;left&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;aVar &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,4)= {'Past'}&amp;gt;} aVar) / Count(aVar) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;All I am trying to do with the above count is count only the variable that starts with the word "Past" and dividing it by the total count of the variable. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I get an error on the above statement and have no idea how to fix. Any help is much appreciated.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Roberto&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418834#M801660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count function and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418835#M801661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is aVar a field or variable? If it is a field, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;aVar = {"Past*"}&amp;gt;} aVar)/Count(aVar)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 16:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418835#M801661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-04T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count function and expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418836#M801662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more way may be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;=C&lt;/SPAN&gt;ount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;a&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Var&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Left(aVar ,4)= 'Past' "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} aVar&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(aVar&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 16:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-function-and-expression/m-p/1418836#M801662</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-12-04T16:38:13Z</dc:date>
    </item>
  </channel>
</rss>

