<?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 to get max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378657#M814419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 08:01:05 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-20T08:01:05Z</dc:date>
    <item>
      <title>Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378649#M814411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hello guys, I have a StoreID,StoreType and NetAmount columns.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to show the max NetAmount in a single storeID, from a single type( StoreType = S,M,L)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=max(aggr(Sum(NetAmount),StoreType = 'M',StoreID)) &amp;amp; chr(13) &amp;amp; StoreID &lt;/P&gt;&lt;P&gt;And it returns only a value, not the StoreID, this value belongs to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also tried&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=FirstSortedValue(StoreID , - aggr(sum(NetAmount),StoreType = 'L')) &amp;amp; chr(13) &amp;amp; aggr(sum(NetAmount),StoreType = 'L')&lt;BR /&gt;But it doesn't return anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions will be highly appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378649#M814411</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378650#M814412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you getting when you use this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max({&amp;lt;singletype = {'S','M','L'}&amp;gt;} Aggr(NetAmount, StoreID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378650#M814412</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-20T07:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378651#M814413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting the maximum value for the selected period, &lt;BR /&gt;But I am not getting which store, is with that value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378651#M814413</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-20T07:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378652#M814414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not quite sure if I understood what the expected output would be. &lt;BR /&gt;Could you provide the sample output which is on your mind?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378652#M814414</guid>
      <dc:creator>patroser</dc:creator>
      <dc:date>2017-09-20T07:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378653#M814415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, Try this? If not, Remove - and check before Aggr()..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(StoreID, -Aggr(Sum({&amp;lt;singletype = {'S','M','L'}&amp;gt;} NetAmount), StoreID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378653#M814415</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-20T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378654#M814416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;283092 - 1014 &lt;BR /&gt;max( NetAmount ) - ( Store ID )&amp;nbsp; ( of type L)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;48 293 - 1001&lt;BR /&gt;max(NetAmount)- ( StoreID) ( of type S)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378654#M814416</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-20T07:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378655#M814417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is returning the StoreID with the max value, from the chosen StoreType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will test it for a sec, and will mark your answer correct if it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 07:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378655#M814417</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-20T07:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378656#M814418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when i make 2 textboxes&lt;BR /&gt;1 is with your expression and it gives me StoreID&lt;BR /&gt;2 is with =Max({&amp;lt;singletype = {'S','M','L'}&amp;gt;} Aggr(NetAmount, StoreID)) ( and it gives me the NetAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378656#M814418</guid>
      <dc:creator>tomovangel</dc:creator>
      <dc:date>2017-09-20T08:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr to get max value</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378657#M814419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-to-get-max-value/m-p/1378657#M814419</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-20T08:01:05Z</dc:date>
    </item>
  </channel>
</rss>

