<?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 Help with aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733611#M262821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=aggr(only({&amp;lt;MasterDate = {'$(=date(max(MasterDate)))'},&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Value = {'$(=max(Value))'}, Name -= {'Team*'}&amp;gt;}Name),Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my app, there are two types of names, team names (begin with 'Team') and individual names (normal names). I'm trying to retrieve the Team with the top 'value' from the most recent date and the Individual with the top 'value' from the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function works fine without the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name -= {'Team*'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to find a way to separate individuals from teams.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 14:32:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-08T14:32:48Z</dc:date>
    <item>
      <title>Help with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733611#M262821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=aggr(only({&amp;lt;MasterDate = {'$(=date(max(MasterDate)))'},&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Value = {'$(=max(Value))'}, Name -= {'Team*'}&amp;gt;}Name),Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my app, there are two types of names, team names (begin with 'Team') and individual names (normal names). I'm trying to retrieve the Team with the top 'value' from the most recent date and the Individual with the top 'value' from the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function works fine without the:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name -= {'Team*'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to find a way to separate individuals from teams.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733611#M262821</guid>
      <dc:creator />
      <dc:date>2014-07-08T14:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733612#M262822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Try some thing like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;=aggr(only({&amp;lt;MasterDate = {'$(=date(max(MasterDate)))'},&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Value = {'$(=max(Value))'}, Name ={'*'}- {'Team*'}&amp;gt;}Name),Name)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733612#M262822</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-07-08T14:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733613#M262823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No dice, thanks for the suggestion though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733613#M262823</guid>
      <dc:creator />
      <dc:date>2014-07-08T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733614#M262824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind. I figured it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733614#M262824</guid>
      <dc:creator />
      <dc:date>2014-07-08T14:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733615#M262825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll need to add the set analysis to your max value as well. Since you are reducing the Names you want the max value for. For example, the max value (80) is for Team B. But when you want the individuals, you exclude Team B with the set analysis. But the max(Value) will still return the max value (80), but this doesn't match any individual.&amp;nbsp;&amp;nbsp; So try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=aggr(only({&amp;lt;MasterDate = {'$(=date(max(MasterDate)))'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Value = {'$(=max({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Name -= {'Team*'}&lt;/SPAN&gt;&amp;gt;}Value))'}, Name -= {'Team*'}&amp;gt;}Name),Name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You could also try using firstsortedvalue or rank functions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-function/m-p/733615#M262825</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-07-08T14:45:41Z</dc:date>
    </item>
  </channel>
</rss>

