<?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 Age Calculation in Text Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962154#M966867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excell is aggregating a value of 7232 and dividing by 37 (the number of open and on-hold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;verifying in Qlik will tell you how Qlik is coming up with average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 17:32:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-29T17:32:43Z</dc:date>
    <item>
      <title>Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962150#M966860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to calculate the average age of 'open' and "on-hold" records in a data set (see attached spreadsheet) and display in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I am using is this:&lt;/P&gt;&lt;P&gt;=AVG(Aggr(sum({&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}Iss_Age),Iss_Age))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result I am getting s 239.83333 and it should be 195 (per the spreadsheet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong in the formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962150#M966860</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2015-09-29T17:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962151#M966861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: line-through;"&gt;=AVG(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-decoration: line-through;"&gt;&lt;STRONG&gt;{&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}&lt;/STRONG&gt; &lt;/SPAN&gt;Aggr(sum({&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}Iss_Age),Iss_Age))&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;edit:&lt;/SPAN&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;No, this should be correct:&lt;/SPAN&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;=AVG(Aggr(sum({&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}Iss_Age),Issue_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962151#M966861</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-09-29T17:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962152#M966863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; display the aggregate total of the number of days as well as the number of rows in the qlikView application - that will tell you how it is cvalculating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962152#M966863</guid>
      <dc:creator />
      <dc:date>2015-09-29T17:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962153#M966865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do: =Avg({&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}Iss_Age)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962153#M966865</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-09-29T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962154#M966867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excell is aggregating a value of 7232 and dividing by 37 (the number of open and on-hold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;verifying in Qlik will tell you how Qlik is coming up with average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962154#M966867</guid>
      <dc:creator />
      <dc:date>2015-09-29T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962155#M966870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also do not believe you need to do an Aggr if you are using the average function - you would only need the aggr function for example if you were going to calcualte the average yoursel you would aggregate and then divide the aggregate by the number of entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The avg function does that for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962155#M966870</guid>
      <dc:creator />
      <dc:date>2015-09-29T17:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962156#M966873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=AVG(Aggr(sum({&amp;lt;Iss_Status = {'Open', 'On-Hold'}&amp;gt;}Iss_Age),Issue_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100375_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962156#M966873</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-29T17:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Average Age Calculation in Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962157#M966876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Try one of the two options.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Age-Calculation-in-Text-Box/m-p/962157#M966876</guid>
      <dc:creator />
      <dc:date>2015-09-29T17:52:07Z</dc:date>
    </item>
  </channel>
</rss>

