<?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: Help with Aggr Function / Max Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136057#M372854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick question for my knowledge purpose..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Why do we need &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;gt;} &lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;when we are already using it inside Aggr() function ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you think the below will work ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Total Value of Quote], -[Version Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,SalesRep, QuoteNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 16:19:41 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2016-05-24T16:19:41Z</dc:date>
    <item>
      <title>Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136054#M372851</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 table that contains the following informatino that I'm trying to extract:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesRep&lt;/P&gt;&lt;P&gt;QuoteNumber&lt;/P&gt;&lt;P&gt;QuoteVersion&lt;/P&gt;&lt;P&gt;QuoteValue&lt;/P&gt;&lt;P&gt;QuoteStatus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is that Sales Reps generate various quotes so ther could be version 1, version 2, version 3 etc. but I don't want to add all the values up, just get the "Newest" (highest numbered) quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is, in a listbox, Put the SalesRep in Column 1, then in Column 2 put the amount of the highest quotes (maximum version number of each quote) that is open (OrderStatus='R')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesMan1 has quote 123 version 1 with a value of £100 and an QuoteStatus of "R"&lt;/P&gt;&lt;P&gt;SalesMan1 has quote 123 version 2 with a value of £50 and an QuoteStatus of "R"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesMan2 has quote 345 version 1 with a value of £200 and an QuoteStatus of "R"&lt;/P&gt;&lt;P&gt;SalesMan2 has quote 345 version 2 with a value of £500 and an QuoteStatus of "R"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesMan3 has quote 678 version 1 with a value of £900 and an QuoteStatus of "R"&lt;/P&gt;&lt;P&gt;SalesMan3 has quote 678 version 2 with a value of £400 and an QuoteStatus of "C"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the listbox I will just be presented with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesMan1 £50 (because the value of the highest open quote version is 2, which is for £50)&lt;/P&gt;&lt;P&gt;SalesMan2 £500 (because the value of the highest open quote version is 2, which is for £500)&lt;/P&gt;&lt;P&gt;SalesMan3 £900 (because the value of the highest open quote version is 1, which is for £900)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've manager to get it working using the below function in but you have to put a filter on the quote number for it to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=money(sum({$&amp;lt;[Quote Status]={R},[Version Number]={$(=max({$}[Version Number]))}&amp;gt;}[Total Value of Quote]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to use the Aggr() but I'm not 100% &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 14:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136054#M372851</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2016-05-24T14:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136055#M372852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;}&lt;/SPAN&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; FirstSortedValue({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Total Value of Quote], -[Version Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,SalesRep, QuoteNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 14:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136055#M372852</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T14:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136056#M372853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 15:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136056#M372853</guid>
      <dc:creator>chris1987</dc:creator>
      <dc:date>2016-05-24T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136057#M372854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick question for my knowledge purpose..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Why do we need &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; color: #ff0000;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;gt;} &lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;when we are already using it inside Aggr() function ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you think the below will work ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Quote Status]={R}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Total Value of Quote], -[Version Number])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,SalesRep, QuoteNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136057#M372854</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-05-24T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136058#M372855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, this probably works as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing the real data model, it's kind of difficult to exactely tell what's working or not.&lt;/P&gt;&lt;P&gt;So better safe then sorry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4669"&gt;Set Analysis in the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136058#M372855</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-24T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Aggr Function / Max Function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136059#M372856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 16:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Aggr-Function-Max-Function/m-p/1136059#M372856</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-05-24T16:26:04Z</dc:date>
    </item>
  </channel>
</rss>

