<?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 Average when value &amp;lt;&amp;gt; 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221703#M74498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the question, it inspired a blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qliktips.blogspot.com/2010/01/more-on-sets-or.html"&gt;http://qliktips.blogspot.com/2010/01/more-on-sets-or.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BTW to the other guys - your "&amp;gt;0" set implies that all the numbers will be positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2010 18:11:07 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2010-01-25T18:11:07Z</dc:date>
    <item>
      <title>Average when value &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221699#M74494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want a function to calculate average, but only when the value is &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Numbers: 100, 0, 200&lt;/P&gt;&lt;P&gt;AVG(Number): 100 (100+0+200 / 3)&lt;BR /&gt;I want 100+200 / 2 = 150&lt;/P&gt;&lt;P&gt;Thank in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 17:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221699#M74494</guid>
      <dc:creator />
      <dc:date>2010-01-25T17:45:46Z</dc:date>
    </item>
    <item>
      <title>Average when value &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221700#M74495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use a set to exclude zero:&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt; F1 -= {0}&amp;gt;} F1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 17:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221700#M74495</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2010-01-25T17:56:58Z</dc:date>
    </item>
    <item>
      <title>Average when value &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221701#M74496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Set Analysis:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Avg({&amp;lt;Numbers = {'&amp;gt;0'}&amp;gt;} Numbers)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;EDIT: Didn't see Stephen's reply when I posted. His will work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 17:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221701#M74496</guid>
      <dc:creator />
      <dc:date>2010-01-25T17:57:54Z</dc:date>
    </item>
    <item>
      <title>Average when value &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221702#M74497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Number) / count( if(Number&amp;gt;0,Number))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 18:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221702#M74497</guid>
      <dc:creator />
      <dc:date>2010-01-25T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Average when value &lt;&gt; 0</title>
      <link>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221703#M74498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the question, it inspired a blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="http://qliktips.blogspot.com/2010/01/more-on-sets-or.html"&gt;http://qliktips.blogspot.com/2010/01/more-on-sets-or.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BTW to the other guys - your "&amp;gt;0" set implies that all the numbers will be positive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 18:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-when-value-lt-gt-0/m-p/221703#M74498</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2010-01-25T18:11:07Z</dc:date>
    </item>
  </channel>
</rss>

