<?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: Set analysis not working in Aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331010#M121921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right but it's not a bug. In the help we can found for &lt;STRONG&gt;Aggr&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;By default, the aggregation function will aggregate over the set of possible records defined by the selection. An alternative set of records can be defined by a &lt;SPAN class="Bold"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message"&gt;set&lt;/A&gt;&lt;/SPAN&gt; expression.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can achieve it using TOTAL keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 08:57:31 GMT</pubDate>
    <dc:creator>nstefaniuk</dc:creator>
    <dc:date>2012-08-01T08:57:31Z</dc:date>
    <item>
      <title>Set analysis not working in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331007#M121918</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;In my application there is a chart for year 2010, 2011, 2012 related to certain dimensions. The chart should not be disturbed when i select last 12month ,6 months, 3 months. (All are seperate list box). Below is the expression that i have used in the chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({1&amp;lt;'Last 3 Months','Last 6 Months','Last 12 Months'= &amp;gt;}(if(Year=Year([MinDateVarSession]), (aggr(Timestamp,User_Pin,[Session Start])))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select 3 months , the value is getting changed. I am not sure why this is happening , since in my other expression it is working fine. Is this because of AGGR function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below expression works fine for another chart, &lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[Last 3 Months]=,[Last 6 Months]=,[Last 12 Months]= &amp;gt;}distinct if( Year =Year([MinDateVarSession]) ,[Document_Name]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331007#M121918</guid>
      <dc:creator />
      <dc:date>2012-08-01T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331008#M121919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have in your wrong formula:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;lt;'Last 3 Months','Last 6 Months','Last 12 Months'= &amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in your good formula:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&amp;lt;[Last 3 Months]=,[Last 6 Months]=,[Last 12 Months]= &amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never seen the syntax used in wrong formula, so try with the syntax of the good formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331008#M121919</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-08-01T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331009#M121920</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;Sorry the formula that i have used in my applicaiton is as below , but still its not working.&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;[Last 3 Months]=,[Last 6 Months]=,[Last 12 Months]= &amp;gt;}distinct(if(Year=Year([MinDateVarSession]), AggR(Timestamp,User_Pin,[Session Start]))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331009#M121920</guid>
      <dc:creator />
      <dc:date>2012-08-01T08:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331010#M121921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right but it's not a bug. In the help we can found for &lt;STRONG&gt;Aggr&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;By default, the aggregation function will aggregate over the set of possible records defined by the selection. An alternative set of records can be defined by a &lt;SPAN class="Bold"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message"&gt;set&lt;/A&gt;&lt;/SPAN&gt; expression.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can achieve it using TOTAL keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-in-Aggr-function/m-p/331010#M121921</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-08-01T08:57:31Z</dc:date>
    </item>
  </channel>
</rss>

