<?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: Calculate average grouping by continuous values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060467#M355038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share your application to play around with this? It is difficult to suggest anything without being able to see how the data structure looks like and without trial and erroring it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 02:20:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-04T02:20:09Z</dc:date>
    <item>
      <title>Calculate average grouping by continuous values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060466#M355037</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 graph table and I need calculate a column on&amp;nbsp; a special way: the values are the average of the values of a previous column called (Diff) grouped by the &lt;STRONG style="text-decoration: underline;"&gt;continuous&lt;/STRONG&gt; values of other column (Duration), See an example at the image below:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="123353" alt="caculateAVGgroup.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123353_caculateAVGgroup.png" style="height: 273px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Currently I am calculating the "Avg. diff" column with this expression:&lt;/P&gt;&lt;P&gt;avg(aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg(Duracion- (Aggr(Avg(duracionReal), F30_HRAsignada) + TiempoEspera)) /*Calculation of "diff" Column*/&lt;/P&gt;&lt;P&gt;, Duration))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is this but it is not the expected result &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="123354" alt="caculateAVGgroup2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/123354_caculateAVGgroup2.png" style="height: 280px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I tried it using a calculated dimesion but calculated dimesion are not valied in AGGR functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;¿Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;José María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 08:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060466#M355037</guid>
      <dc:creator>moleroalonso</dc:creator>
      <dc:date>2016-05-03T08:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average grouping by continuous values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060467#M355038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share your application to play around with this? It is difficult to suggest anything without being able to see how the data structure looks like and without trial and erroring it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 02:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060467#M355038</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-04T02:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average grouping by continuous values</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060468#M355039</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 finally fixed this problem in the Load Script. I calculated a new field that mark each&amp;nbsp; continuos values with a ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thread can be closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 07:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-average-grouping-by-continuous-values/m-p/1060468#M355039</guid>
      <dc:creator>moleroalonso</dc:creator>
      <dc:date>2016-05-04T07:25:29Z</dc:date>
    </item>
  </channel>
</rss>

