<?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 AVG() problem in TOTAL EXPRESSION in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254743#M1206209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Dear Nigel,&lt;/P&gt;&lt;P&gt;The problem it's just that. I've different behavior if in total mode I use Avg of Rows (right result) or Total (wrong result).&lt;/P&gt;&lt;P&gt;But I need to have the same using different classification, so it's seems that some others dimensions is creating me problem getting out a wrong result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 May 2010 05:24:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-01T05:24:39Z</dc:date>
    <item>
      <title>AVG() problem in TOTAL EXPRESSION</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254740#M1206202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I'm getting crazy with it !&lt;/P&gt;&lt;P&gt;I've OrderTable with Header and Position and I'm just calculating the lead time (GoodIssueDate - InsertOrderDate) grouping it by country.&lt;/P&gt;&lt;P&gt;Basically I need to have an avg lead time calculation :&lt;/P&gt;&lt;P&gt;And I put an expression Avg(GoodIssueDate - InsertOrderDate) and it works if I select "Average" under "Total Mode" on the Expressions tab&lt;/P&gt;&lt;P&gt;If I select Total Expressions it give me wrong result. Problem is that if I have all the line orders items result is ok, if I have it grouped by country it give me a wrong result.&lt;/P&gt;&lt;P&gt;Just look to the attachment and last folder u see blank table with column AVGTOT (Total Expression) and AVGAVE (average of figure)&lt;/P&gt;&lt;P&gt;I tried with avg(TOTAL &amp;lt;some fields&amp;gt;... but it doesn't works&lt;/P&gt;&lt;P&gt;Any Idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 11:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254740#M1206202</guid>
      <dc:creator />
      <dc:date>2010-04-30T11:27:06Z</dc:date>
    </item>
    <item>
      <title>AVG() problem in TOTAL EXPRESSION</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254741#M1206203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try changing the total mode for that expression to Avg OF ROWS in the expressions tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 13:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254741#M1206203</guid>
      <dc:creator />
      <dc:date>2010-04-30T13:18:06Z</dc:date>
    </item>
    <item>
      <title>AVG() problem in TOTAL EXPRESSION</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254742#M1206206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Italian friend!&lt;/P&gt;&lt;P&gt;I see that there are some dates missing.&lt;/P&gt;&lt;P&gt;I think you should bring the difference "Date1-Date2 as DateDif" calculated in script, then use a simple AVG(DateDif) would give the correct result. Treat missing values generates a more complex and less generic chart expression.&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;Fernando D'Agosto &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 13:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254742#M1206206</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-04-30T13:46:11Z</dc:date>
    </item>
    <item>
      <title>AVG() problem in TOTAL EXPRESSION</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254743#M1206209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Dear Nigel,&lt;/P&gt;&lt;P&gt;The problem it's just that. I've different behavior if in total mode I use Avg of Rows (right result) or Total (wrong result).&lt;/P&gt;&lt;P&gt;But I need to have the same using different classification, so it's seems that some others dimensions is creating me problem getting out a wrong result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 May 2010 05:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254743#M1206209</guid>
      <dc:creator />
      <dc:date>2010-05-01T05:24:39Z</dc:date>
    </item>
    <item>
      <title>AVG() problem in TOTAL EXPRESSION</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254744#M1206211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your feedback.&lt;/P&gt;&lt;P&gt;As suggested from Fernando I've solved it doing the calculation on script side, avoiding any duplication and dirty data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 08:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-problem-in-TOTAL-EXPRESSION/m-p/254744#M1206211</guid>
      <dc:creator />
      <dc:date>2010-05-18T08:24:19Z</dc:date>
    </item>
  </channel>
</rss>

