<?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 Set Analysis in AGGR Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726682#M452054</link>
    <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;Just run out of ideas why the expression below still reacts to selections made in the [TRANSACTION TYPE] dimension;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(AGGR(COUNT({$&amp;lt;Year={'$(vMaxYear)'},[TRANSACTION TYPE]=&amp;gt;}DISTINCT TransactionNumberToCount),[Transaction Number]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 04:32:42 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2020-07-10T04:32:42Z</dc:date>
    <item>
      <title>Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726682#M452054</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;Just run out of ideas why the expression below still reacts to selections made in the [TRANSACTION TYPE] dimension;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(AGGR(COUNT({$&amp;lt;Year={'$(vMaxYear)'},[TRANSACTION TYPE]=&amp;gt;}DISTINCT TransactionNumberToCount),[Transaction Number]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 04:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726682#M452054</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2020-07-10T04:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726687#M452055</link>
      <description>&lt;P&gt;The additional scopes where you have to/can put set analysis are in bold below:&lt;/P&gt;&lt;P&gt;SUM( &lt;STRONG&gt;{}&lt;/STRONG&gt; AGGR( &lt;STRONG&gt;{}&lt;/STRONG&gt; COUNT({$&amp;lt;Year={'$(vMaxYear)'},[TRANSACTION TYPE]=&amp;gt;}DISTINCT TransactionNumberToCount),[Transaction Number]))&lt;/P&gt;&lt;P&gt;and in variable definition, may be like:&lt;/P&gt;&lt;P&gt;vMaxYear=Max( &lt;STRONG&gt;{}&lt;/STRONG&gt; Year)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 05:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726687#M452055</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-10T05:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726717#M452057</link>
      <description>&lt;P&gt;Thanks for that response, but then how would you combine them because your proposed expression seems incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 08:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726717#M452057</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2020-07-10T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726741#M452061</link>
      <description>&lt;P&gt;How exactly you made the changes to your expression? Let me know what makes you think that it is incorrect. Try to share a sample app.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 09:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726741#M452061</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-10T09:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726753#M452063</link>
      <description>&lt;P&gt;Just making it clear to what&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp; is trying to say&lt;/P&gt;&lt;P&gt;you may need to exclude the selection from your outer aggregation as well.&lt;/P&gt;&lt;P&gt;If you also don't want your&amp;nbsp;&lt;STRONG&gt;vMaxYear&amp;nbsp;&lt;/STRONG&gt;to change for this selection, you may need to exclude the selection there as well&lt;/P&gt;&lt;P&gt;Assuming your variable expression is max(Year) then change it to max({&amp;lt;&lt;STRONG&gt;[TRANSACTION TYPE]=&lt;/STRONG&gt;&amp;gt;}Year)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(&lt;FONT color="#FF0000"&gt;{&amp;lt;[TRANSACTION TYPE]=&amp;gt;}&lt;/FONT&gt;AGGR(COUNT({$&amp;lt;Year={'$(vMaxYear)'},[TRANSACTION TYPE]=&amp;gt;}DISTINCT TransactionNumberToCount),[Transaction Number]))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 09:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726753#M452063</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-10T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726755#M452064</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, also possibly in aggr().&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 09:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726755#M452064</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-10T09:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726757#M452065</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp; honestly I never used&amp;nbsp; excluding field set in aggr, but it works fine even though we did not write set there&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 10:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726757#M452065</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-10T10:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726769#M452071</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;, you are not wrong. However, there are cases when set analysis in aggr() is required, and since we don't know much deep about the requirement and business logic here it is good to go with the thumb rule (especially when one is not sure), i.e. - &lt;EM&gt;put set analysis in all possible aggregation functions and aggr() in the expression&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 10:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-AGGR-Function/m-p/1726769#M452071</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-07-10T10:33:56Z</dc:date>
    </item>
  </channel>
</rss>

