<?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 Average of aggregated count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161111#M915574</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;I am new to Qlikview and have a requirement to calculate the average count of visitors for the last 6 months based on the user selection of the month.&lt;/P&gt;&lt;P&gt;For instance, If I choose Jan 2016 it should&amp;nbsp; calculate the average of&amp;nbsp; Jan2016, Dec2015,Nov2015,Oct2015,Sep2015,Aug2015.&lt;/P&gt;&lt;P&gt;what I have found and written is this&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14643499073657907" jivemacro_uid="_14643499073657907"&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Avg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} Visitor_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I do not choose any month it works and gives me the average but when a month is selected it returns only the value of selected month not the average for the last 6 months. what am I doing wrong&lt;/SPAN&gt;&lt;STRONG&gt;? &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>kourosh_r</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161111#M915574</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;I am new to Qlikview and have a requirement to calculate the average count of visitors for the last 6 months based on the user selection of the month.&lt;/P&gt;&lt;P&gt;For instance, If I choose Jan 2016 it should&amp;nbsp; calculate the average of&amp;nbsp; Jan2016, Dec2015,Nov2015,Oct2015,Sep2015,Aug2015.&lt;/P&gt;&lt;P&gt;what I have found and written is this&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14643499073657907" jivemacro_uid="_14643499073657907"&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Avg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} Visitor_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;If I do not choose any month it works and gives me the average but when a month is selected it returns only the value of selected month not the average for the last 6 months. what am I doing wrong&lt;/SPAN&gt;&lt;STRONG&gt;? &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161111#M915574</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161112#M915575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Avg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&lt;SPAN style="font-size: 18pt;"&gt;1&lt;/SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} Visitor_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthYear&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 17:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161112#M915575</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-27T17:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161113#M915576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marcus, but it did not work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 17:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161113#M915576</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-27T17:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161114#M915577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear={"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"}&amp;gt;}&lt;/SPAN&gt; Aggr(count( {&amp;lt;MonthYear={"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"}&amp;gt;} Visitor_ID), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 17:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161114#M915577</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-27T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161115#M915578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny but I don't understand it. could you please explain it? I tried it but the result is only zero.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 18:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161115#M915578</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-27T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161116#M915579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are restricting your inner aggregation using set analysis to show 6 months of data, but the outer aggregation is not restricted. As soon as your select a month, the outer one will just show the result for that month. By adding the same set analysis you used for inner aggregation to the outer one, you are allowing the outer one to display the 6 months also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have other date related fields where you make selections like Date, Year, Quarter, Week?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 18:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161116#M915579</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-27T18:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161117#M915580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing to check is the MonthYear format. Is it MMMYYYY or MMM-YYYY? You post shows Jan2016, but your set analysis uses MMM-YYYY. Make sure the two are consistent, because otherwise your set analysis will not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 18:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161117#M915580</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-27T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161118#M915581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very well spotted and explained Sunny - a bit more detailed explanation is here: &lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 02:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161118#M915581</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-28T02:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161119#M915582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing this link &lt;A _jive_internal="true" href="https://community.qlik.com/people/marcus_sommer"&gt;Marcus&lt;/A&gt;‌ I did try to lookup for something that did explain this to support what I mentioned. I am glad that you were able to add this here for us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 10:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161119#M915582</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-28T10:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161120#M915583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thank you so much for taking the time and explaining this to me, I understand it now. As you've mentioned I have other date related fields as well. in addition to the MonthYear filed I have Month, Year and Quarter that I make the selection. When I use the MonthYear filed, your suggestion works beautifully but when I use only the Month, I get the value for that very Month. Is there any remedy to this?&amp;nbsp; Thank you in advance.&lt;/P&gt;&lt;P&gt;-Kourosh&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161120#M915583</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T11:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161121#M915584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thank you for your time and sharing this link. It is well explained by Henric.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Kourosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161121#M915584</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161122#M915585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Sorry about that It was my typos in posting the problem. the format is 'MMM-YYYY' for the MonthYear field.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;-Kourosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 11:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161122#M915585</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161123#M915586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer and optionally Helpful Answers.&lt;/P&gt;&lt;P&gt;If not, please let us know with which part of this topic you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161123#M915586</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-05-31T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161124#M915587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is partially answered by Sunny but it is not the completely resolved. I am marking his answer as correct but still I need to know how could I get the same result when I select the Month filed instead of MonthYear. That was my hesitation for not flagging the Correct Answer.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Kourosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161124#M915587</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161125#M915588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({&amp;lt;MonthYear={"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"}&lt;SPAN style="color: #ff0000;"&gt;, Month, Quarter, Year&lt;/SPAN&gt;&amp;gt;} Aggr(count( {&amp;lt;MonthYear={"&amp;gt;$(=Date(AddMonths(Max(MonthYear),-6),'MMM-YYYY'))&amp;lt;=$(=Date(Max(MonthYear), 'MMM-YYYY'))"}&lt;SPAN style="color: #ff0000;"&gt;, Month, Quarter, Year&amp;gt;&lt;/SPAN&gt;} Visitor_ID), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Add all other date related fields where you might make a selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161125#M915588</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161126#M915590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at my response above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161126#M915590</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161127#M915592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. It was exactly what I was looking for!!!&lt;/P&gt;&lt;P&gt;I would appreciate it if you could tell me why adding these fields changed the behavior of the selection when they are not selecting anything.&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;-Kourosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161127#M915592</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T12:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Average of aggregated count</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161128#M915594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood it , I was not clear about omitting the equal sign in front of a filed was an option. Thanks again!&lt;/P&gt;&lt;P&gt;-Kourosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 13:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-aggregated-count/m-p/1161128#M915594</guid>
      <dc:creator>kourosh_r</dc:creator>
      <dc:date>2016-05-31T13:39:05Z</dc:date>
    </item>
  </channel>
</rss>

