<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888393#M1011895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 14:48:28 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-04-27T14:48:28Z</dc:date>
    <item>
      <title>Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888381#M1011881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to build an expression using the count function that shows me the count for a dimension based on a date.&amp;nbsp; The current expression I have is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[POS Date]={'10/31/2014'}&amp;gt;}[Instrument Type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why it does not work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 21:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888381#M1011881</guid>
      <dc:creator />
      <dc:date>2015-04-22T21:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888382#M1011884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it could be easier to help you, if you can upload a little sample of your data,&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, 22 Apr 2015 21:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888382#M1011884</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2015-04-22T21:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888383#M1011885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Essentially what I'm trying to do is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Count(Instrument Type)&lt;/P&gt;&lt;P&gt;from &amp;lt;table)&lt;/P&gt;&lt;P&gt;where POS Date = '10/31/2014'&lt;/P&gt;&lt;P&gt;group by Instrument Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 21:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888383#M1011885</guid>
      <dc:creator />
      <dc:date>2015-04-22T21:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888384#M1011886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi =count({$} [Instrument Type]) Your set Analysis seems to be ok in terms of syntax and should not have a syntax error Do you have a zero value return. if so this means the condition found no data and maybe you should remove the $ for having the current selection Try this =count({} [Instrument Type]) Thanks Ziad &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888384#M1011886</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-22T22:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888385#M1011887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Try this count({} [Instrument Type]) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888385#M1011887</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-22T22:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888386#M1011888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({&amp;lt;[POS Date] ={'10/31/2014'}&amp;gt;} [Instrument Type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why the editor removes the single qoute&lt;/P&gt;&lt;P&gt;but anyway try removing the $ sign of the current selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888386#M1011888</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-22T22:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888387#M1011889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The outcome of an expression will always depend on the dimension(s) that you use. The dimension and expression will then depend on your data model, so with all the details it is hard to advise on how you can address the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide a simple sample QVW file with a description of you expected result, it will be possible to determine why you get your current results and also advise on changes to get your expected result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888387#M1011889</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-04-22T22:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888388#M1011890</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>Wed, 22 Apr 2015 23:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888388#M1011890</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-22T23:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888389#M1011891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is format of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[POS Date] is 'MM/DD/YYYY' ?&lt;/SPAN&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: 13px;"&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: 13px;"&gt;If &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[POS Date] is date then try this&lt;/SPAN&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: 13px;"&gt;=Count({$&amp;lt;[POS Date]={"$(=Date#('10/31/2014','MM/DD/YYYY'))}&amp;gt;}[Instrument Type])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 05:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888389#M1011891</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-23T05:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888390#M1011892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that syntax and am seeing a syntax error with the parens.&amp;nbsp; See screen grab below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Count Syntax.png" class="jive-image image-1" src="/legacyfs/online/84731_Count Syntax.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;From what I can see the Parenthesis line up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888390#M1011892</guid>
      <dc:creator />
      <dc:date>2015-04-23T15:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888391#M1011893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The set expression search string needs to be closed with a double-quote. &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: 13px;"&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: 13px;"&gt;=Count({$&amp;lt;[POS Date]={"$(=Date#('10/31/2014','MM/DD/YYYY'))"}&amp;gt;}[Instrument Type])&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: 13px;"&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: 13px;"&gt;However, there is no point in making a static calculation like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Date#('10/31/2014','MM/DD/YYYY') in the set expression. This will only result in a text looking like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;10/31/2014, meaning that the calculation just makes the expression look more complex and wastes time for one calculation. Just write the date direct in the expression, and this is equal to the expression above. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&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: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Count({$&amp;lt;[POS Date]={"10/31/2014"}&amp;gt;}[Instrument Type])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 22:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888391#M1011893</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-04-23T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888392#M1011894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, however I am still unable to get the expression to function.&amp;nbsp; When I use just the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count([Instrument Type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Instr Count.png" class="jive-image image-1" src="/legacyfs/online/85147_Instr Count.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try your expression, no results are returned when I know there should be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888392#M1011894</guid>
      <dc:creator />
      <dc:date>2015-04-27T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888393#M1011895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888393#M1011895</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-27T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888394#M1011896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out the way I loaded the data was in a format that was inconsistent.&amp;nbsp; I changed the format and reloaded and this worked.&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, 27 Apr 2015 14:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888394#M1011896</guid>
      <dc:creator />
      <dc:date>2015-04-27T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Function</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888395#M1011897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the [POS Date] field doesn't contain anything recognizable by QlikView as a date. Can you post a screenshot of a [POS Date] listbox? Or a small test document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime and on condition that you're not using a PE Desktop, check out Massimo's example higher up.&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, 27 Apr 2015 14:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Function/m-p/888395#M1011897</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-27T14:56:15Z</dc:date>
    </item>
  </channel>
</rss>

