<?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 find the Average Interval between Days? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293826#M404143</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 wanted to calculate the average interval days between consecutive dates. I found the interval using the following expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Below(date(ORDERDATE)) - date(ORDERDATE),'d')&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the following expression, &lt;STRONG&gt;Aggr(Avg(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Interval(Below(date(ORDERDATE)) - date(ORDERDATE),'d')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it throws me an error in expression saying Below function is not allowed inside aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am actually trying to get the table like,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162342_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample file for your convenience.&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 13:40:36 GMT</pubDate>
    <dc:creator>mohan_1105</dc:creator>
    <dc:date>2017-05-05T13:40:36Z</dc:date>
    <item>
      <title>How to find the Average Interval between Days?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293826#M404143</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 wanted to calculate the average interval days between consecutive dates. I found the interval using the following expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(Below(date(ORDERDATE)) - date(ORDERDATE),'d')&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the following expression, &lt;STRONG&gt;Aggr(Avg(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Interval(Below(date(ORDERDATE)) - date(ORDERDATE),'d')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it throws me an error in expression saying Below function is not allowed inside aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am actually trying to get the table like,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162342_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample file for your convenience.&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293826#M404143</guid>
      <dc:creator>mohan_1105</dc:creator>
      <dc:date>2017-05-05T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Average Interval between Days?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293827#M404144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Avg(total &amp;lt;Group&amp;gt; Aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Interval(Below(ORDERDATE)-ORDERDATE-1,'D')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;,Group,ORDERDATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 14:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293827#M404144</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-05T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Average Interval between Days?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293828#M404145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 10pt;"&gt;Tresesco,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: inherit; font-size: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me with the expression. It works for good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 07:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-find-the-Average-Interval-between-Days/m-p/1293828#M404145</guid>
      <dc:creator>mohan_1105</dc:creator>
      <dc:date>2017-05-08T07:04:20Z</dc:date>
    </item>
  </channel>
</rss>

