<?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: Getting max value for combination of dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392119#M694562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue( aggr(sum(Value),Year,Age), -aggr(Age, Year, Age) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 14:41:34 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-05-21T14:41:34Z</dc:date>
    <item>
      <title>Getting max value for combination of dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392118#M694561</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 have a simple pivot table with two dimensions and a sum(value) expression, see screenshot below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41431" class="jive-image" alt="Table.JPG" src="https://community.qlik.com/legacyfs/online/41431_Table.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is another pivot table which has &lt;STRONG&gt;Year &lt;/STRONG&gt;as the dimension and the &lt;STRONG&gt;sum(Value) for the highest Age in each Year. &lt;/STRONG&gt;So the table should look like:&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 168,366,539&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150,206,177&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 195,035,156&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 213,980,411&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392118#M694561</guid>
      <dc:creator>kouroshkarimi</dc:creator>
      <dc:date>2013-05-21T14:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max value for combination of dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392119#M694562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue( aggr(sum(Value),Year,Age), -aggr(Age, Year, Age) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392119#M694562</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-05-21T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max value for combination of dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392120#M694563</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;Have you tried using MAX (Age)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392120#M694563</guid>
      <dc:creator />
      <dc:date>2013-05-21T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max value for combination of dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392121#M694564</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;SPAN class="hps"&gt;You can also&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;do it the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;following way&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Age&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(#=max(Age))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 15:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-max-value-for-combination-of-dimensions/m-p/392121#M694564</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2013-05-21T15:03:55Z</dc:date>
    </item>
  </channel>
</rss>

