<?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: Only sum expression where the highest version in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260161#M98195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. That solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 11:59:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-20T11:59:50Z</dc:date>
    <item>
      <title>Only sum expression where the highest version</title>
      <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260157#M98191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a file. In this Pivottable I have three projects with versions and hours for each version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7973" alt="Plan_Version_1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/7973_Plan_Version_1.png" /&gt;&lt;IMG __jive_id="7974" alt="Plan_Version_2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/7974_Plan_Version_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to collapse the table to show only project and Sum(values) but I ONLY want to have the Sum(values) for the highest version. For instance for the project KL008 the result should be 1174 and not 2652. How can I achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated the file because I have an another issue. In the old uploaded file, every project had only one row version and value. Thus, the idea from swuehl worked. However in my productive database, project has many rows, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;project - version - value&lt;/P&gt;&lt;P&gt;KL008 - 4 - 242&lt;/P&gt;&lt;P&gt;KL008 - 4 - 235&lt;/P&gt;&lt;P&gt;KL008 - 4 - 275&lt;/P&gt;&lt;P&gt;KL008 - 5 - 391&lt;/P&gt;&lt;P&gt;KL008 - 5 - 390&lt;/P&gt;&lt;P&gt;KL008 - 5 - 393&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in pivot table the expression sum(values) show for KL008 and version 5 the result "1174" which is correct. How to show the cumulated result for the highest version???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260157#M98191</guid>
      <dc:creator />
      <dc:date>2011-10-19T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Only sum expression where the highest version</title>
      <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260158#M98192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try an expression with an advanced aggregation like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(version=max(total&amp;lt;project&amp;gt; version),values),project,version))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260158#M98192</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-19T14:49:00Z</dc:date>
    </item>
    <item>
      <title>Only sum expression where the highest version</title>
      <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260159#M98193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi swuehl, it worked for the uploaded file. Unfortunately my database had an another structure which your recommendation did not work. I updated my orginal discussion. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 10:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260159#M98193</guid>
      <dc:creator />
      <dc:date>2011-10-20T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Only sum expression where the highest version</title>
      <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260160#M98194</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 the following expression instead&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;Sum(If(Version = Aggr(NODISTINCT Max(TOTAL &amp;lt;Project&amp;gt; Version), Project), Value))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Max() returns more than one value and you want to take into account all the values, you need to add the NODISTINCT keyword to the Aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&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; 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>Thu, 20 Oct 2011 11:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260160#M98194</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-20T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Only sum expression where the highest version</title>
      <link>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260161#M98195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. That solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-sum-expression-where-the-highest-version/m-p/260161#M98195</guid>
      <dc:creator />
      <dc:date>2011-10-20T11:59:50Z</dc:date>
    </item>
  </channel>
</rss>

