<?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 How to show the average numbers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-the-average-numbers/m-p/259107#M97820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if EndDate and StartDate are always same for identical OrderID (i.e. it doesn't matter which line of the two OrderIDs '1' is ignored), try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg(aggr(DISTINCT (EndDate-StartDate), OrderId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 09:55:15 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-08-09T09:55:15Z</dc:date>
    <item>
      <title>How to show the average numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-the-average-numbers/m-p/259106#M97819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderId, StartDate, EndDate, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1,&amp;nbsp; 2010-1-1, 2010-1-5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1,&amp;nbsp; 2010-1-1, 2010-1-5&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2,&amp;nbsp; 2010-1-3, 2010-1-5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the average difference between StartDate and EndDate and show it in text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4+2)/2=3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should ignore the second record, how to use the expression to achieve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-the-average-numbers/m-p/259106#M97819</guid>
      <dc:creator />
      <dc:date>2011-08-09T09:33:58Z</dc:date>
    </item>
    <item>
      <title>How to show the average numbers?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-the-average-numbers/m-p/259107#M97820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if EndDate and StartDate are always same for identical OrderID (i.e. it doesn't matter which line of the two OrderIDs '1' is ignored), try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg(aggr(DISTINCT (EndDate-StartDate), OrderId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-the-average-numbers/m-p/259107#M97820</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-09T09:55:15Z</dc:date>
    </item>
  </channel>
</rss>

