<?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 Identifying the group with the max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594293#M1121873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;i have teh following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;Sports&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;Sports1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;sports2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 2 text objects in which i have 2 show the group with the maximum sales and the sales for that particular group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maximum sales can be obtained using the below expression:&lt;/P&gt;&lt;P&gt;=Num(Max(Aggr(Sum(Sales), Group)), '###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what would be the expression for finding its corresponding group (in this case sports1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 12:03:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-31T12:03:27Z</dc:date>
    <item>
      <title>Identifying the group with the max value</title>
      <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594293#M1121873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;i have teh following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;Sports&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;Sports1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;sports2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 2 text objects in which i have 2 show the group with the maximum sales and the sales for that particular group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maximum sales can be obtained using the below expression:&lt;/P&gt;&lt;P&gt;=Num(Max(Aggr(Sum(Sales), Group)), '###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what would be the expression for finding its corresponding group (in this case sports1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594293#M1121873</guid>
      <dc:creator />
      <dc:date>2014-01-31T12:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the group with the max value</title>
      <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594294#M1121874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yousuf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you need?&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;Sales = {"$(=Max(Sales))"}&amp;gt;} Group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594294#M1121874</guid>
      <dc:creator />
      <dc:date>2014-01-31T12:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the group with the max value</title>
      <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594295#M1121875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There would be FirstSortedValue but it would return null if more than 1 group had achieved the max sales.&lt;/P&gt;&lt;P&gt;You can obtain a concatenation of all the winning groups like this:&lt;/P&gt;&lt;P&gt;=Concat({&amp;lt;Group={"=Sum(Sales)=Max(TOTAL Aggr(Sum(Sales), Group))"}&amp;gt;} DISTINCT Group,', ')&lt;/P&gt;&lt;P&gt;Winning groups are separated by ', ' only if there is more than 1. This formula would also work without sales being summed by group in the table.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594295#M1121875</guid>
      <dc:creator />
      <dc:date>2014-01-31T12:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the group with the max value</title>
      <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594296#M1121876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Likasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594296#M1121876</guid>
      <dc:creator />
      <dc:date>2014-01-31T12:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the group with the max value</title>
      <link>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594297#M1121877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/people/pdecalan"&gt;pdecalan&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Identifying-the-group-with-the-max-value/m-p/594297#M1121877</guid>
      <dc:creator />
      <dc:date>2014-01-31T12:31:55Z</dc:date>
    </item>
  </channel>
</rss>

