<?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 Invalid expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Invalid-expression/m-p/461482#M172316</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;Im trying to make this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[journalnr],&lt;/P&gt;&lt;P&gt;(date - regdate)/(count(items)) as average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i reload I get invalid expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date - regdate gives me the number of days&lt;/P&gt;&lt;P&gt;count items is the number af items&lt;/P&gt;&lt;P&gt;so what I want is number of days divided by number of items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I cant attach file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 08:34:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-17T08:34:22Z</dc:date>
    <item>
      <title>Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-expression/m-p/461482#M172316</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;Im trying to make this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[journalnr],&lt;/P&gt;&lt;P&gt;(date - regdate)/(count(items)) as average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i reload I get invalid expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date - regdate gives me the number of days&lt;/P&gt;&lt;P&gt;count items is the number af items&lt;/P&gt;&lt;P&gt;so what I want is number of days divided by number of items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I cant attach file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 08:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-expression/m-p/461482#M172316</guid>
      <dc:creator />
      <dc:date>2013-04-17T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid expression</title>
      <link>https://community.qlik.com/t5/QlikView/Invalid-expression/m-p/461483#M172317</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;you cannot do a count() inside the script as the script take the rows one by one.&lt;/P&gt;&lt;P&gt;The only way to achieve what you want to do is to create a temp table with a 'group by' to calculate that count before using the information.Hope I am clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Invalid-expression/m-p/461483#M172317</guid>
      <dc:creator>PhilippeMotillon</dc:creator>
      <dc:date>2013-04-17T12:34:34Z</dc:date>
    </item>
  </channel>
</rss>

