<?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 an average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587573#M1114590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggested solution works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 10:08:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-17T10:08:54Z</dc:date>
    <item>
      <title>calculating an average</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587571#M1114588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate the average processing time based on the difference between datetimeprocessed and datetimereceived.. But I only want to calculate the average for rows where there is a value in datetimeprocessed field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the following expression to achieve this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Interval(DateTimeProcessed-DateTimeReceived))/$Rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if the above is correct. Can someone please help me with getting the correct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587571#M1114588</guid>
      <dc:creator />
      <dc:date>2014-02-14T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: calculating an average</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587572#M1114589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avg(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateTimeProcessed-DateTimeReceived&lt;/SPAN&gt;) should work. Or you can use&lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateTimeProcessed-DateTimeReceived&lt;/SPAN&gt;)/Count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateTimeProcessed-DateTimeReceived&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DateTimeProcessed-DateTimeReceived is evaluated to NULL when one of the fields is missing, and will then not be included.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 13:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587572#M1114589</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-14T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: calculating an average</title>
      <link>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587573#M1114590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggested solution works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 10:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculating-an-average/m-p/587573#M1114590</guid>
      <dc:creator />
      <dc:date>2014-02-17T10:08:54Z</dc:date>
    </item>
  </channel>
</rss>

