<?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: aggr function issue in set analysis and pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774188#M274655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Ruben.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 09:09:41 GMT</pubDate>
    <dc:creator>kkkumar82</dc:creator>
    <dc:date>2015-02-10T09:09:41Z</dc:date>
    <item>
      <title>aggr function issue in set analysis and pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774186#M274653</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 have created two expressions &lt;/P&gt;&lt;P&gt;expr1 :&lt;/P&gt;&lt;P&gt;&amp;nbsp; min(aggr(Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}[CPN Savings])&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}Spend),[CM/ODM]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expr2:&lt;/P&gt;&lt;P&gt;max(aggr(Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}[CPN Savings])&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}Spend),[CM/ODM]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also created a variable vCM/ODM = expr1 - expr2 , which is working fine when I used in a text box giving me the result 0.25%&lt;/P&gt;&lt;P&gt;which is (0.72 - .47) which we can see in the combo chart , ie the max and min %'s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am using the same expressions in&amp;nbsp; the pivot the minimum and maximum percentages are changed&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77501_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want 0.72% for all rows in max and 0.47% for all rows in min column, how to get this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 07:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774186#M274653</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2015-02-10T07:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function issue in set analysis and pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774187#M274654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran, to avoid dimension filter you can use the TOTAL qualifier:&lt;/P&gt;&lt;P&gt;Max:&lt;/P&gt;&lt;P&gt;max(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; aggr(Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}[CPN Savings])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}Spend),[CM/ODM]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min:&lt;/P&gt;&lt;P&gt;min(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; aggr(Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}[CPN Savings])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;QuarterYear={$(vCurrentQuarter), $(vLastQuarter1), $(vLastQuarter2), $(vLastQuarter3)}&amp;gt;}Spend),[CM/ODM]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774187#M274654</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-10T08:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function issue in set analysis and pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774188#M274655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Ruben.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-issue-in-set-analysis-and-pivot-table/m-p/774188#M274655</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2015-02-10T09:09:41Z</dc:date>
    </item>
  </channel>
</rss>

