<?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 Max Value using Aggr Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013440#M931280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my source file , In each month there are multiple ID's and each ID's has different Sales value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to pick only the maximum Sales value in a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression Max(aggr(sum(Value),ID,Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression works if i add Month and Product as dimensions and it takes the maximum value of a corresponding month.(Bar Chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add ID in the dimension , it doesn't takes the maximum value , Instead it shows all the IDs with all the values.(Straight table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013440#M931280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my source file , In each month there are multiple ID's and each ID's has different Sales value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to pick only the maximum Sales value in a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression Max(aggr(sum(Value),ID,Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression works if i add Month and Product as dimensions and it takes the maximum value of a corresponding month.(Bar Chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add ID in the dimension , it doesn't takes the maximum value , Instead it shows all the IDs with all the values.(Straight table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Siva&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/Max-Value-using-Aggr-Function/m-p/1013440#M931280</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013441#M931281</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;Try this Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr(Max(Value),Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 10:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013441#M931281</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-03-07T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013442#M931282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117186_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;ID = {"=Aggr(Sum(Value), Month, ID) = Aggr(NODISTINCT Max(TOTAL &amp;lt;Month&amp;gt; Aggr(Sum(Value), ID, Month)), Month)"}&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013442#M931282</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-07T11:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013443#M931283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dimensions used in the chart should be equal or less granular than Aggr expression dimensions, chart dimensions will decide how to show Aggr results.&lt;/P&gt;&lt;P&gt;As shown below Chart dimensions are Month, Product, ID(more granular, not desired!) than last Aggr dimension(Month, less granular). Show it calculates expression value once only for each month.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117183_Capture.JPG" style="height: 217px; width: 620px;" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 11:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1013443#M931283</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-07T11:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1695000#M931284</link>
      <description>&lt;P&gt;BACKEND SCRIPT&lt;/P&gt;&lt;P&gt;Tab1:&lt;BR /&gt;LOAD&lt;BR /&gt;"Year",&lt;BR /&gt;Trimester,&lt;BR /&gt;"Month",&lt;BR /&gt;Value&lt;BR /&gt;FROM [lib://data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;left Join (Tab1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tab2:&lt;BR /&gt;load&lt;BR /&gt;Trimester,&lt;BR /&gt;max(Value) as max&lt;BR /&gt;Resident Tab1 group by Trimester;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 17:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1695000#M931284</guid>
      <dc:creator>rajaxavier</dc:creator>
      <dc:date>2020-04-20T17:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value using Aggr Function</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1695096#M931285</link>
      <description>&lt;P&gt;As mentioned before, when do we use AGGR function, it creates a temporary table. In this case, QlikView has calculated the sale for each Product by Company. From this virtual table we have to identify maximum sales value and it is done by MAX() function&amp;nbsp;&lt;A href="https://www.prepaidcardstatus.net/" target="_self"&gt;prepaidcardstatus&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 07:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-using-Aggr-Function/m-p/1695096#M931285</guid>
      <dc:creator>Larcombes</dc:creator>
      <dc:date>2020-04-22T07:06:53Z</dc:date>
    </item>
  </channel>
</rss>

