<?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: Average....Strange this happening in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288062#M403155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand your expected output. May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Avg( Total&lt;/STRONG&gt; {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 10:39:03 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-02-03T10:39:03Z</dc:date>
    <item>
      <title>Average....Strange this happening</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288061#M403154</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 have a chart showing the total arrivals by hour of the day over the last two weeks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension = [ArrivalHour]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression = sum( {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="arrivals by hour_total.PNG" class="jive-image image-1" src="/legacyfs/online/151874_arrivals by hour_total.PNG" style="height: 180px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change this to show the average arrivals per hour for the whole two week period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I change the expresion to this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum( {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals) / &lt;SPAN style="font-size: 13.3333px;"&gt;sum( total {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the chart is showing less than zero per hour for the two week period :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;IMG alt="arrivals by hour_total_an.PNG" class="jive-image image-2" src="/legacyfs/online/151875_arrivals by hour_total_an.PNG" style="height: 181px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain why this is happening ?&amp;nbsp; The average for 12 midday should be 33.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TJM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288061#M403154</guid>
      <dc:creator />
      <dc:date>2017-02-03T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Average....Strange this happening</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288062#M403155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand your expected output. May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Avg( Total&lt;/STRONG&gt; {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288062#M403155</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-02-03T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average....Strange this happening</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288063#M403156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you divide the absolute number per bin by the absolute total number, you get the percentage of that bin compared to the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, approx. 6-7% of the arrivals happen around 12 midday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An average arrival could be calculated by&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum( {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals) / Count(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; DISTINCT {&amp;lt;.Last2Weeks={'1'}&amp;gt;}&amp;nbsp; DateFIELD)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum( {&amp;lt;.Last2Weeks={'1'}&amp;gt;}total_arrivals) / &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;14&amp;nbsp;&amp;nbsp; /* 14 days in period */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:39:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288063#M403156</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-03T10:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Average....Strange this happening</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288064#M403157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now what you are doing is converting your total_arrival data into percentage.... basically if across the 24 hours in the day for 2 weeks you have a sum of 2000 (for example) and 0 hour is 50, then you are doing 50/2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried Avg() instead of Sum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Avg({&amp;lt;.Last2Weeks={'1'}&amp;gt;} total_arrivals)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Sum({&amp;lt;.Last2Weeks={'1'}&amp;gt;} total_arrivals)/14&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 10:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Strange-this-happening/m-p/1288064#M403157</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-03T10:39:51Z</dc:date>
    </item>
  </channel>
</rss>

