<?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 aggr - aggregated minimum/Maximum calculation regardless of selection in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-aggregated-minimum-Maximum-calculation-regardless-of/m-p/201264#M503086</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'm calculating a rank for a minichart in a straight table and have dynamic min and max. For the min and max functions I'm using the aggr function with a min. Here's the function:&lt;/P&gt;&lt;P&gt;[CODE] =min(total aggr(Sum ({$&amp;lt;[4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'},[4AN - Level 4 Account Name] = {'Pay Costs','Non Pay Costs','Income'}&amp;gt;} Actuals*CalCurYTDFlag)-sum({$&amp;lt;[4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'},[4AN - Level 4 Account Name] = {'Pay Costs','Non Pay Costs','Income'}&amp;gt;} [Budget 1]*CalCurYTDFlag),ExpenseGrp))[/CODE]&lt;/P&gt;&lt;P&gt;The problem I'm having is that when a selection is made in the field [4AC - Level 4 Account Code] this reduces the available values in ExpenseGrp and the aggregation only then aggregates on the remaining available values - I want it to aggregate by all values available in ExpenseGrp with the selection as per the set analysis, i.e. [4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'}. Like set analysis for the aggr section (but that doesn't work).&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2010 08:49:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-15T08:49:08Z</dc:date>
    <item>
      <title>aggr - aggregated minimum/Maximum calculation regardless of selection in field</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-aggregated-minimum-Maximum-calculation-regardless-of/m-p/201264#M503086</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'm calculating a rank for a minichart in a straight table and have dynamic min and max. For the min and max functions I'm using the aggr function with a min. Here's the function:&lt;/P&gt;&lt;P&gt;[CODE] =min(total aggr(Sum ({$&amp;lt;[4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'},[4AN - Level 4 Account Name] = {'Pay Costs','Non Pay Costs','Income'}&amp;gt;} Actuals*CalCurYTDFlag)-sum({$&amp;lt;[4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'},[4AN - Level 4 Account Name] = {'Pay Costs','Non Pay Costs','Income'}&amp;gt;} [Budget 1]*CalCurYTDFlag),ExpenseGrp))[/CODE]&lt;/P&gt;&lt;P&gt;The problem I'm having is that when a selection is made in the field [4AC - Level 4 Account Code] this reduces the available values in ExpenseGrp and the aggregation only then aggregates on the remaining available values - I want it to aggregate by all values available in ExpenseGrp with the selection as per the set analysis, i.e. [4AC - Level 4 Account Code] = {'PAY','NONPAY','INCOME'}. Like set analysis for the aggr section (but that doesn't work).&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 08:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-aggregated-minimum-Maximum-calculation-regardless-of/m-p/201264#M503086</guid>
      <dc:creator />
      <dc:date>2010-09-15T08:49:08Z</dc:date>
    </item>
  </channel>
</rss>

