<?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 The Average Function (Chart) result differs from the average (total) on a straight table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1723670#M55072</link>
    <description>&lt;P&gt;I have a data set that shows, by assignee, the date that a service request was placed in a work queue.&amp;nbsp; The table shows all the items in the queue, selectable by assignee.&amp;nbsp; I've configured the table to return average number of backlog days:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fginfrida_0-1593541037502.png" style="width: 544px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36609i037500203570FB28/image-dimensions/544x173?v=v2" width="544" height="173" role="button" title="fginfrida_0-1593541037502.png" alt="fginfrida_0-1593541037502.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Where the column Backlog Days is forced to be a measure by setting equal to Avg(Backlog_Day_Number). The query that generates a data set for this application returns a value for backlog days which is calculated excluding all non-working days.&lt;/P&gt;&lt;P&gt;The value of 8.9 for the particular assignee is correct - a total of 62 backlog days for 7 service requests.&amp;nbsp; Well and good.&lt;/P&gt;&lt;P&gt;However, when I try to compute the backlog elsewhere in the application, either with the formula&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Aggr(Avg(Backlog_Day_Number),Assignee)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or with a simple&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Avg(Backlog_Day_Number) with a selection of "Charles Burrell"&lt;/P&gt;&lt;P&gt;the application returns 11.17.&lt;/P&gt;&lt;P&gt;Clearly I'm failing to understand something about the Avg. Function (and why it differs from selecting a Total with a type of Avg).&amp;nbsp; Can anyone shed light on this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank Ginfrida&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:00:50 GMT</pubDate>
    <dc:creator>fginfrida</dc:creator>
    <dc:date>2024-11-16T02:00:50Z</dc:date>
    <item>
      <title>The Average Function (Chart) result differs from the average (total) on a straight table</title>
      <link>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1723670#M55072</link>
      <description>&lt;P&gt;I have a data set that shows, by assignee, the date that a service request was placed in a work queue.&amp;nbsp; The table shows all the items in the queue, selectable by assignee.&amp;nbsp; I've configured the table to return average number of backlog days:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fginfrida_0-1593541037502.png" style="width: 544px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36609i037500203570FB28/image-dimensions/544x173?v=v2" width="544" height="173" role="button" title="fginfrida_0-1593541037502.png" alt="fginfrida_0-1593541037502.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Where the column Backlog Days is forced to be a measure by setting equal to Avg(Backlog_Day_Number). The query that generates a data set for this application returns a value for backlog days which is calculated excluding all non-working days.&lt;/P&gt;&lt;P&gt;The value of 8.9 for the particular assignee is correct - a total of 62 backlog days for 7 service requests.&amp;nbsp; Well and good.&lt;/P&gt;&lt;P&gt;However, when I try to compute the backlog elsewhere in the application, either with the formula&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Aggr(Avg(Backlog_Day_Number),Assignee)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or with a simple&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Avg(Backlog_Day_Number) with a selection of "Charles Burrell"&lt;/P&gt;&lt;P&gt;the application returns 11.17.&lt;/P&gt;&lt;P&gt;Clearly I'm failing to understand something about the Avg. Function (and why it differs from selecting a Total with a type of Avg).&amp;nbsp; Can anyone shed light on this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank Ginfrida&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1723670#M55072</guid>
      <dc:creator>fginfrida</dc:creator>
      <dc:date>2024-11-16T02:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: The Average Function (Chart) result differs from the average (total) on a straight table</title>
      <link>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1723673#M55074</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Avg(Aggr(
    Avg(Backlog_Day_Number)
, Assignee, [SR No.]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1723673#M55074</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-06-30T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: The Average Function (Chart) result differs from the average (total) on a straight table</title>
      <link>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1727445#M55439</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; That provided a correct answer.&lt;/P&gt;&lt;P&gt;I'm still not clear on the rationale for the result. I'll have to dig deeper into the AVG function and how it operates.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 18:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/The-Average-Function-Chart-result-differs-from-the-average-total/m-p/1727445#M55439</guid>
      <dc:creator>fginfrida</dc:creator>
      <dc:date>2020-07-13T18:38:22Z</dc:date>
    </item>
  </channel>
</rss>

