<?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: Wrong AVG in Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139847#M917294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to keep your totals, maybe use a Qty expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstsortedValue(&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum( Above( count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)),0,rowno() ))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Week)&lt;/P&gt;&lt;P&gt;, aggr(-Week,Week)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if your Qty line values can't be negative, maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Max(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Aggr(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Rangesum( Above( count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)),0,rowno() ))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; ,Week)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 10:11:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-13T10:11:01Z</dc:date>
    <item>
      <title>Wrong AVG in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139844#M917291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no good result for an avg when i count with 2 columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139844#M917291</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong AVG in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139845#M917292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as expression for Avg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=[Total Amount]&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rangesum(Above(count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)),0,Rowno()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139845#M917292</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-13T09:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong AVG in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139846#M917293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124514_Capture.PNG" style="height: 91px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the expression for Qty from full accumulation to no accumulation and used the RangeSum(Above()) expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)), 0, RowNo()))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 09:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139846#M917293</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-13T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong AVG in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139847#M917294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to keep your totals, maybe use a Qty expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstsortedValue(&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Rangesum( Above( count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)),0,rowno() ))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,Week)&lt;/P&gt;&lt;P&gt;, aggr(-Week,Week)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if your Qty line values can't be negative, maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Max(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Aggr(&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Rangesum( Above( count(if(Project_Aanneemsom &amp;gt; '0' or Project_Aanneemsom &amp;lt; '0' or Meerwerk_Bedrag &amp;gt; '0' or Meerwerk_Bedrag &amp;lt; '0' ,Project_Code)),0,rowno() ))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; ,Week)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 10:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-AVG-in-Chart/m-p/1139847#M917294</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-13T10:11:01Z</dc:date>
    </item>
  </channel>
</rss>

