<?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 getcurrentfield() for Groups does not work when used with aggr() in Trellis Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299596#M588689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(aggr(sum(sales), date, groupname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 May 2011 12:04:51 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-14T12:04:51Z</dc:date>
    <item>
      <title>getcurrentfield() for Groups does not work when used with aggr() in Trellis Chart</title>
      <link>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299594#M588687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created a stacked bar chart showing sales by product group over time. I then created a Trellis chart with region as a dimension. I found that the y-axis was too high, so I changed it to a static max with this expression: max(aggr(sum(sales), date, region)). Everything worked perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I changed the dimension of the Trellis chart from region to a cyclic group containing region and business unit, I realized I'd need to change the expression above for the static max of my axis so that it would update based on the cyclic group selection. I changed the expression to this: max(aggr(sum(sales), date, getcurrentfield(groupname))) where 'groupname' was the name of the group I created. This did not work, and the y-axis max did not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my expression for the static max of the y-axis off the mark or is there some kind of bug with QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 02:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299594#M588687</guid>
      <dc:creator />
      <dc:date>2011-05-14T02:17:09Z</dc:date>
    </item>
    <item>
      <title>getcurrentfield() for Groups does not work when used with aggr() in Trellis Chart</title>
      <link>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299595#M588688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;try ur expression like this&lt;/P&gt;&lt;P&gt;(aggr(sum(sales), date, getcurrentfield(Region,business uit))&lt;/P&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;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Kaushal Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 05:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299595#M588688</guid>
      <dc:creator>kaushalview</dc:creator>
      <dc:date>2011-05-14T05:07:09Z</dc:date>
    </item>
    <item>
      <title>getcurrentfield() for Groups does not work when used with aggr() in Trellis Chart</title>
      <link>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299596#M588689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(aggr(sum(sales), date, groupname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 12:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299596#M588689</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-14T12:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: getcurrentfield() for Groups does not work when used with aggr() in Trellis Chart</title>
      <link>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299597#M588690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Erich! You were spot on! I hadn't tried that because QlikView shows groupname with a red underline in that expression, suggesting the expression isn't correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that QlikView isn't consistent in the way it reports the value of a group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I simply if I use any of the following in the window title field, the value of the group is not displayed&lt;/P&gt;&lt;P&gt;=groupname&lt;/P&gt;&lt;P&gt;=[groupname]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, however, I use this in the window title field, the value of the active element in the group is displayed!&lt;/P&gt;&lt;P&gt;=getcurrentfield(groupname)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for some odd reason, QlikView requires you to use getcurrentfield() in some cases and not in others. It's frustrating to say the least.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 May 2011 19:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getcurrentfield-for-Groups-does-not-work-when-used-with-aggr-in/m-p/299597#M588690</guid>
      <dc:creator />
      <dc:date>2011-05-14T19:28:47Z</dc:date>
    </item>
  </channel>
</rss>

