<?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: What's the aggr dimension value for the highest value of expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307967#M586927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;FirstSortedValue(Month, -SalesAmount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is read as "return the first value ordered by SalesAmount, descending".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that waht you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2011 11:58:05 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-07-26T11:58:05Z</dc:date>
    <item>
      <title>What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307966#M586926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to some earlier help from &lt;SPAN style=": ; mso-fareast-language: EN-GB; mso-bidi-language: AR-SA; color: #000000; font-size: 10pt; Tahoma&amp;amp;quot: ; sans-serif&amp;amp;quot: ; mso-ansi-language: EN-US; font-family: &amp;amp;quot; mso-fareast-theme-font: minor-latin; ,&amp;amp;quot: ; mso-fareast-font-family: Calibri;"&gt;Daniel Rozental I have the following expression which gives me the highest (max) value of sum(SalesAmount) over the last 12 periods or [$Year Month]s if ploted on a chart. with [$Year Month] as the dimension.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I now want to know which [$Year Month] this max value corresponds to?&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=max(&lt;BR /&gt;{$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[$Year Month])&lt;BR /&gt; )&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Month [SalesAmount]&lt;BR /&gt;2011M07 £50841&lt;BR /&gt;2011M06 £5364840 - this is the highest value - so I need the anwer 2011M06&lt;BR /&gt;2011M05 £5193593&lt;BR /&gt;2011M04 £3813374&lt;BR /&gt;2011M03 £4220276&lt;BR /&gt;2011M02 £4163247&lt;BR /&gt;2011M01 £3002792&lt;BR /&gt;2010M12 £5242737&lt;BR /&gt;2010M11 £4680143&lt;BR /&gt;2010M10 £3362565&lt;BR /&gt;2010M09 £5057832&lt;BR /&gt;2010M08 £5060385&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help much appreciated&lt;BR /&gt;Regards&lt;BR /&gt;Matthew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 11:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307966#M586926</guid>
      <dc:creator />
      <dc:date>2011-07-26T11:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307967#M586927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;FirstSortedValue(Month, -SalesAmount)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is read as "return the first value ordered by SalesAmount, descending".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that waht you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; text-decoration: underline; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 11:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307967#M586927</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-26T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307968#M586928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably use Only() which will return the distinct value, that will be based on the aggregated total max in your data. With your additional limitaitons from above, but by the following principle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt; =Only( {$ &amp;lt;[SalesAmount]={"$(#= max( {$$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;}&amp;nbsp; aggr(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[$Year Month]) )&amp;nbsp; "}&amp;gt;} [$Year Month]) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note; Might miss some syntax, since I did not have the script editor available to validate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 12:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307968#M586928</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-07-26T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307969#M586929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel – but I’ve tried a variety of FirstSortedValue(Month, -SalesAmount) with no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Stephen&lt;/P&gt;&lt;P&gt;Solution Consultant UKI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+447557267135&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. QlikTech UK Limited, registered in England and Wales with number 5292408, and whose registered office is Villiers House, Clarendon Avenue, Leamington Spa, Warwickshire, CV32 5PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307969#M586929</guid>
      <dc:creator />
      <dc:date>2011-07-26T12:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307970#M586930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tony but no joy – I’d like to return the value to a text object, in the same way the function below does – the Only() function appears to be only available for chart expressions – but even then I can’t seem to get any joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Stephen&lt;/P&gt;&lt;P&gt;Solution Consultant UKI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+447557267135&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. QlikTech UK Limited, registered in England and Wales with number 5292408, and whose registered office is Villiers House, Clarendon Avenue, Leamington Spa, Warwickshire, CV32 5PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 13:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307970#M586930</guid>
      <dc:creator />
      <dc:date>2011-07-26T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307971#M586931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;maxstring(aggr(&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) =&lt;/P&gt;&lt;P&gt;max(total&lt;/P&gt;&lt;P&gt;{$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[$Year Month])&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt; , [$Year Month])&lt;/P&gt;&lt;P&gt; , [$Year Month]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 13:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307971#M586931</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-26T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307972#M586932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel – but this time no joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns -, the syntax appears to be fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I broke it down a little&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=maxstring(aggr(&lt;/P&gt;&lt;P&gt;if(5364840.1799999 =&lt;/P&gt;&lt;P&gt;max(total&lt;/P&gt;&lt;P&gt;{$}&lt;/P&gt;&lt;P&gt;               &lt;A href="https://community.qlik.com/SalesAmount"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;                )&lt;/P&gt;&lt;P&gt;     ,[$Year Month])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;, &lt;A href="$Year Month"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;, &lt;A href="$Year Month"&gt;&lt;/A&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still returns –&lt;/P&gt;&lt;P&gt;As does&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=maxstring(aggr(&lt;/P&gt;&lt;P&gt;if(sum({$}&lt;/P&gt;&lt;P&gt;               &lt;A href="https://community.qlik.com/SalesAmount"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;                )&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;5364840.1799999&lt;/P&gt;&lt;P&gt;, &lt;A href="$Year Month"&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;, &lt;A href="$Year Month"&gt;&lt;/A&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Stephen&lt;/P&gt;&lt;P&gt;Solution Consultant UKI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+447557267135&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. QlikTech UK Limited, registered in England and Wales with number 5292408, and whose registered office is Villiers House, Clarendon Avenue, Leamington Spa, Warwickshire, CV32 5PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307972#M586932</guid>
      <dc:creator />
      <dc:date>2011-07-26T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307973#M586933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, It won't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 14:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307973#M586933</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-26T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307974#M586934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307974#M586934</guid>
      <dc:creator />
      <dc:date>2011-07-26T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307975#M586935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it now, try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=maxstring(total {$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} aggr(&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) =&lt;/P&gt;&lt;P&gt;max(total&lt;/P&gt;&lt;P&gt;{$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SalesAmount]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[$Year Month])&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt; , only({$&amp;lt;PeriodCounter = {"&amp;gt;$(#=max(PeriodCounter-12))&amp;lt;=$(#=max(PeriodCounter))"},[$Year Month]= &amp;gt;} [$Year Month]))&lt;/P&gt;&lt;P&gt; , [$Year Month]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307975#M586935</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-26T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307976#M586936</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 think Miguel suggestion using &lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;FirstSortedValue(Month, -SalesAmount)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note that sort order should return a numerical value, if your Sales Amount is a text with leading pound symbol, you may try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;FirstSortedValue(Month, -num#(SalesAmount,'FORMAT'))&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where format is appropriate format string (I can't find pound symbol on my keyboard at the moment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch swuehl - typos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307976#M586936</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-26T15:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307977#M586937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue should work assuming that he has a single record for SalesAmount for each month and that there won't be two months with the exact same SalesAmount (which is highly improbable either way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, just tested the previous expression in the sample attached and it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 15:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307977#M586937</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-07-26T15:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307978#M586938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing – that works – thanks Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ll have to study it now to see what you’ve done – looks rather Jedi Knight at the moment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Stephen&lt;/P&gt;&lt;P&gt;Solution Consultant UKI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+447557267135&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qlik.com&amp;lt;http://www.qlik.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. QlikTech UK Limited, registered in England and Wales with number 5292408, and whose registered office is Villiers House, Clarendon Avenue, Leamington Spa, Warwickshire, CV32 5PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 17:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307978#M586938</guid>
      <dc:creator />
      <dc:date>2011-07-26T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's the aggr dimension value for the highest value of expression</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307979#M586939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a good solution for my problem as well. However, it is very memory intesive. Isnt there a solution that is more efficient?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-the-aggr-dimension-value-for-the-highest-value-of/m-p/307979#M586939</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2012-06-14T13:34:53Z</dc:date>
    </item>
  </channel>
</rss>

