<?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: Calculating Average on Count(x) Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917227#M982920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't close the Avg bracket:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Count(ID), Week))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 15:13:12 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-08-10T15:13:12Z</dc:date>
    <item>
      <title>Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917224#M982917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV-Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to calculate an average on an Count(x) expression. For a better understanding see the chart below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average_Line.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95533_Average_Line.jpg" style="width: 620px; height: 363px;" /&gt;&lt;/P&gt;&lt;P&gt;The blue bars show the weekly count of radiology examinations. Now I want to calculate the average of this weekly count and show it as a horizontal line. I know, that there is a standard function for this, but I do not want to use this because I can not define the color properly. Se the following threat why:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/175267"&gt;Calculating average in weekly reporting of count of examinations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to the answer in this threat I want to realize the average line by a calculated reference line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have now idea how to design an expression that fits my requirements. I tried things like Avg(Count(ID)). But I get not the right results. Is it even possible to use an standard expression on another standard expression???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Achim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917224#M982917</guid>
      <dc:creator />
      <dc:date>2015-08-10T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917225#M982918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Achim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Count(ID), Other Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check this link by HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3208"&gt;Average – Which average?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 14:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917225#M982918</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917226#M982919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Sinan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still do not come around with this expression. I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error_expression.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95549_error_expression.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But I already get an error in the editor field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have no idea to calculate this average value. Thought about giving every record another field with a count of 1 to use "sum" instead of "count". But if I replace Count by Sum in the expression above it still gives me an error back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought that should be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Achim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917226#M982919</guid>
      <dc:creator />
      <dc:date>2015-08-10T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917227#M982920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't close the Avg bracket:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg(Aggr(Count(ID), Week))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917227#M982920</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917228#M982921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... too tired to see! Think I am dealing with this problem for too long. Sorry! You are totally right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am much closer now. Added "year" as a further dimension and get my desired average line &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Achim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917228#M982921</guid>
      <dc:creator />
      <dc:date>2015-08-10T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Average on Count(x) Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917229#M982922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It happens to everyone. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 15:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Average-on-Count-x-Expression/m-p/917229#M982922</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-10T15:43:40Z</dc:date>
    </item>
  </channel>
</rss>

