<?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 Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avg-Question/m-p/146913#M25389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the attached is what you're looking for. To get the count of months, I expanded your calendar to include all dates in 2008. To handle switching from months to weeks, I added a visit_period cyclic group. Then I used this expression:&lt;/P&gt;&lt;P&gt;count(distinct visit_date) / count(total distinct visit_period)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 05:50:51 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2009-06-23T05:50:51Z</dc:date>
    <item>
      <title>Avg Question</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Question/m-p/146912#M25388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'd like to calculate the average of visitors.&lt;BR /&gt;A visit should only be counted if it's on different days. e.g. Elvis P. visited 2x on 20.05.2008 -&amp;gt; 1 Visit&lt;BR /&gt;I would like to calculate the average per visitor dependent on the selected date/ date range.&lt;BR /&gt;&lt;BR /&gt;Average for Elvis P.:&lt;BR /&gt;=========================&lt;BR /&gt;Elvis visited on 02.01.2008, 03.01.2008, 05.05.2008, 22.05.2008, 31.07.2008&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Average 01/2008: 2&lt;BR /&gt;Average 05/2008: 3&lt;BR /&gt;&lt;BR /&gt;Average 01/2008 - 06/2008 = 5/2(Months) = 2.5&lt;BR /&gt;Average 2008: 6/12 = 0.5&lt;BR /&gt;&lt;BR /&gt;Is there a way to get this dynamic so that I can switch from months to calendar weeks.&lt;BR /&gt;I guess I also have to use a calendar script in this case?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Aloah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 20:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Question/m-p/146912#M25388</guid>
      <dc:creator />
      <dc:date>2009-06-16T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Avg Question</title>
      <link>https://community.qlik.com/t5/QlikView/Avg-Question/m-p/146913#M25389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the attached is what you're looking for. To get the count of months, I expanded your calendar to include all dates in 2008. To handle switching from months to weeks, I added a visit_period cyclic group. Then I used this expression:&lt;/P&gt;&lt;P&gt;count(distinct visit_date) / count(total distinct visit_period)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 05:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avg-Question/m-p/146913#M25389</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-23T05:50:51Z</dc:date>
    </item>
  </channel>
</rss>

