<?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: How can I calculate an average days ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792920#M280295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-12-27 at 20.30.15.png" class="image-1 jive-image" src="/legacyfs/online/74275_Screen Shot 2014-12-27 at 20.30.15.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Month and Date&lt;/P&gt;&lt;P&gt;expression:&amp;nbsp; Average&amp;nbsp; &lt;/P&gt;&lt;P&gt;RANGEAVG (Above (COUNT(distinct STORE_ID),0,2))&lt;/P&gt;&lt;P&gt;expression: count&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;COUNT(distinct STORE_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Dec 2014 02:15:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-28T02:15:43Z</dc:date>
    <item>
      <title>How can I calculate an average days ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792917#M280292</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 want to calculate an average days of store which are starts the activity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculcale the average days : ( count store per day for type 4,5,6 and count store per day-1 for type 4,5,6 ) / 2&lt;/P&gt;&lt;P&gt;My set analysis is : Count(DISTINCT {&amp;lt;CALENDAR_DATE={'$(=Date(Max(CALENDAR_DATE)))'} , TYPE= {4,5,6} &amp;gt; } STORE_ID)&lt;/P&gt;&lt;P&gt;But the result is only for the last date (May). How can I calculate the average day:&lt;/P&gt;&lt;P&gt;( Number store with type 4,5,6 per day + Number store with type 456 par day -1 )&amp;nbsp; / 2 in set analysis ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 23:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792917#M280292</guid>
      <dc:creator>suzel404</dc:creator>
      <dc:date>2014-12-27T23:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate an average days ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792918#M280293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Chart Table&amp;nbsp; Add the CALENDAR_month and CALENDAR_Date as dimensions and in the expression add hte following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGEAVG (Above (COUNT(STORE_ID),-1,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This tells QView Engine to COUNT the STORE_ID (you can use DISTINCT also) and makes an average of the range between the previous row and the current row. just make sure it is sorted by ClaendarDate also. See attached file, hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 01:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792918#M280293</guid>
      <dc:creator />
      <dc:date>2014-12-28T01:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate an average days ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792919#M280294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, the expression is:&lt;/P&gt;&lt;P&gt;RANGEAVG (Above (COUNT(distinct STORE_ID),0,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 02:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792919#M280294</guid>
      <dc:creator />
      <dc:date>2014-12-28T02:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate an average days ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792920#M280295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-12-27 at 20.30.15.png" class="image-1 jive-image" src="/legacyfs/online/74275_Screen Shot 2014-12-27 at 20.30.15.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Month and Date&lt;/P&gt;&lt;P&gt;expression:&amp;nbsp; Average&amp;nbsp; &lt;/P&gt;&lt;P&gt;RANGEAVG (Above (COUNT(distinct STORE_ID),0,2))&lt;/P&gt;&lt;P&gt;expression: count&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;COUNT(distinct STORE_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 02:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792920#M280295</guid>
      <dc:creator />
      <dc:date>2014-12-28T02:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I calculate an average days ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792921#M280296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mario.&lt;/P&gt;&lt;P&gt;It is exactly what I need !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Dec 2014 20:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-calculate-an-average-days/m-p/792921#M280296</guid>
      <dc:creator>suzel404</dc:creator>
      <dc:date>2014-12-28T20:12:51Z</dc:date>
    </item>
  </channel>
</rss>

