<?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 Error in Calculated Expression error when using Count and Only Functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Expression-error-when-using-Count-and-Only/m-p/250561#M497461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new&amp;nbsp; to QlikView&amp;nbsp; and having an issue with trying to get a chart to work. I added an expression in the expression tab to represent the denominator of the calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Only(MyField='Foo''))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I get an error in calculated expression message. Am I allowed to embed a one function inside another when creating an expression? Basically I am using this as a SQL where claus e as I need multiple charts based on values found in 'MyField'. Any help would be greatly appreciated! Thanks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2011 14:23:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-14T14:23:05Z</dc:date>
    <item>
      <title>Error in Calculated Expression error when using Count and Only Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Expression-error-when-using-Count-and-Only/m-p/250561#M497461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new&amp;nbsp; to QlikView&amp;nbsp; and having an issue with trying to get a chart to work. I added an expression in the expression tab to represent the denominator of the calculation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Only(MyField='Foo''))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I get an error in calculated expression message. Am I allowed to embed a one function inside another when creating an expression? Basically I am using this as a SQL where claus e as I need multiple charts based on values found in 'MyField'. Any help would be greatly appreciated! Thanks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 14:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Expression-error-when-using-Count-and-Only/m-p/250561#M497461</guid>
      <dc:creator />
      <dc:date>2011-10-14T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Calculated Expression error when using Count and Only Functions</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Expression-error-when-using-Count-and-Only/m-p/250562#M497462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't just embed one aggregation function (and only() is also an aggregation function) within another like count().&lt;/P&gt;&lt;P&gt;(You could use aggr() function to get around this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or try maybe&lt;/P&gt;&lt;P&gt;= sum( if(MyField = 'Foo',1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 14:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Calculated-Expression-error-when-using-Count-and-Only/m-p/250562#M497462</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-14T14:32:44Z</dc:date>
    </item>
  </channel>
</rss>

