<?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 Calculate aggr average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328907#M410786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with trying to figure out the following scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line chart that shows a rate by month for a given selected year. The customer wants to be able to calculate the average for the entire previous year and use that as measure for the current year and plot that across the entire year to use as a benchmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; 10%&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp; 5%&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp; 12%&lt;/P&gt;&lt;P&gt;May 13%&lt;/P&gt;&lt;P&gt;Jun&amp;nbsp; 14%&lt;/P&gt;&lt;P&gt;Jul&amp;nbsp;&amp;nbsp; 15%&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 17%&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;Oct&amp;nbsp;&amp;nbsp; 5%&lt;/P&gt;&lt;P&gt;Nov&amp;nbsp; 11%&lt;/P&gt;&lt;P&gt;Dec&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average = 10% ( plot 10% across entire graph for 2017, month selection should be ignored)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; when I use this expression I am able to get the avg rate, however the when I select month , the function is not ignoring the set analysis for month. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vRate = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[READM_IND]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) /&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[IND]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 16:01:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-17T16:01:38Z</dc:date>
    <item>
      <title>Calculate aggr average</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328907#M410786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with trying to figure out the following scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line chart that shows a rate by month for a given selected year. The customer wants to be able to calculate the average for the entire previous year and use that as measure for the current year and plot that across the entire year to use as a benchmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&amp;nbsp; 10%&lt;/P&gt;&lt;P&gt;Feb&amp;nbsp; 5%&lt;/P&gt;&lt;P&gt;Mar&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;Apr&amp;nbsp; 12%&lt;/P&gt;&lt;P&gt;May 13%&lt;/P&gt;&lt;P&gt;Jun&amp;nbsp; 14%&lt;/P&gt;&lt;P&gt;Jul&amp;nbsp;&amp;nbsp; 15%&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 17%&lt;/P&gt;&lt;P&gt;Sep&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;Oct&amp;nbsp;&amp;nbsp; 5%&lt;/P&gt;&lt;P&gt;Nov&amp;nbsp; 11%&lt;/P&gt;&lt;P&gt;Dec&amp;nbsp; 6%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Average = 10% ( plot 10% across entire graph for 2017, month selection should be ignored)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; when I use this expression I am able to get the avg rate, however the when I select month , the function is not ignoring the set analysis for month. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vRate = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[READM_IND]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) /&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[IND]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 16:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328907#M410786</guid>
      <dc:creator />
      <dc:date>2017-04-17T16:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate aggr average</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328908#M410787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also exclude the selection in outer aggregation function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AVG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vRate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month of Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 16:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328908#M410787</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-04-17T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate aggr average</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328909#M410788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 12:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-aggr-average/m-p/1328909#M410788</guid>
      <dc:creator />
      <dc:date>2017-04-19T12:13:05Z</dc:date>
    </item>
  </channel>
</rss>

