<?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 Comparing monthly values to average - using Aggr() ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-monthly-values-to-average-using-Aggr/m-p/376753#M1168925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create an expression comparing the value of an expression for a month to the average (or sum) of the same expression for all months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I should use an aggr function but cannot manage it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the Excel file will be more explicit (in the yellow column, the expression I'd like to create).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made various tries with aggr(sum(spacecrafts),NumMonth)/aggr(avg(inhabitants),NumMonth), Aggr(sum(spacecrafts),NumMonth,Planet)... but I allways get 1 as result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone could help me understand how to do that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 21:57:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-09T21:57:22Z</dc:date>
    <item>
      <title>Comparing monthly values to average - using Aggr() ?</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-monthly-values-to-average-using-Aggr/m-p/376753#M1168925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create an expression comparing the value of an expression for a month to the average (or sum) of the same expression for all months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I should use an aggr function but cannot manage it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the Excel file will be more explicit (in the yellow column, the expression I'd like to create).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made various tries with aggr(sum(spacecrafts),NumMonth)/aggr(avg(inhabitants),NumMonth), Aggr(sum(spacecrafts),NumMonth,Planet)... but I allways get 1 as result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone could help me understand how to do that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-monthly-values-to-average-using-Aggr/m-p/376753#M1168925</guid>
      <dc:creator />
      <dc:date>2012-08-09T21:57:22Z</dc:date>
    </item>
  </channel>
</rss>

