<?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: Aggregate Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543262#M202992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;i don't know, what you want exactly. Can you describe your problem, again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 14:04:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-30T14:04:49Z</dc:date>
    <item>
      <title>Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543261#M202991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have one table with two fields &lt;STRONG&gt;"total old"&lt;/STRONG&gt; and &lt;STRONG&gt;"total new",&lt;/STRONG&gt; and I want to turn &lt;STRONG&gt;"Total Old"&lt;/STRONG&gt; in &lt;STRONG&gt;"Total new":&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Here's my current table :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="48302" alt="myResult.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48302_myResult.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;And this is my desired result :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="48303" alt="Desired.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48303_Desired.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What I'm trying to do is if I have four rows like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="208"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="104"&gt;Date&lt;/TD&gt;&lt;TD width="104"&gt;Num&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/02/2013&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/03/2013&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/04/2013&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/05/2013&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/06/2013&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Get a table like this (with more fields related ) :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="208"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="104"&gt;Date&lt;/TD&gt;&lt;TD width="104"&gt;Num&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/02/2013&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/03/2013&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/04/2013&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/05/2013&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl24" height="20"&gt;20/06/2013&lt;/TD&gt;&lt;TD align="right"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;This is my current formula, but it doesn't work :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxString(Years)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString(Years))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&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; MaxString( [Km Group] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString( [Km Group]&amp;nbsp; ))&lt;/P&gt;&lt;P&gt;&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; Sum(Total&amp;lt;Years, [Km Group]&amp;nbsp;&amp;nbsp; &amp;gt; [Total Old] ),' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I attach my qv document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 18:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543261#M202991</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-10-29T18:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543262#M202992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel,&lt;/P&gt;&lt;P&gt;i don't know, what you want exactly. Can you describe your problem, again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 14:04:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543262#M202992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543263#M202993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, I have two fields : "total old" with my results, and "total new" with my desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to make an aggregate sum of the previous records of the field "code", and show it only in the last possible result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the document you'll see three different 3 tables :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My result&lt;/STRONG&gt;&lt;/SPAN&gt; : Is the results that I'm getting in my current table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;My desired result&lt;/STRONG&gt;&lt;/SPAN&gt; : Is the desired results, but using the field "total new", and I want to use "total old".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;What I'm trying&lt;/STRONG&gt;&lt;/SPAN&gt; : I'm trying to replicate the results of the "desired result" table into my current table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand now what I'm trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me Stefan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 14:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543263#M202993</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-10-30T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543264#M202994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody here has any idea of how can I do this with Qlikview? Maybe this is not possible, and I'm wondering if I can do it or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 20:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543264#M202994</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-10-30T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543265#M202995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my take, but I think there are some problems with your Total New field calculation, ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Km Group&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Total New&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Total Old&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Years&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z1PZAR019629&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;30/08/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;+-90&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;936,35&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;1 Año&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543265#M202995</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-11-05T20:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543266#M202996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Daniel! You got very close, but it's not the same. You have to get the same result as "total new".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a suposed good result in a previous post thanks to Bryan Dunphy in a previous post :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/97411"&gt;http://community.qlik.com/thread/97411&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you take a look at both documents? Maybe you got inspired as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543266#M202996</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-05T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543267#M202997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel, I don't understand why my solution is wrong. I believe the values loaded as "total new" are wrong in some cases like the one I posted before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543267#M202997</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-11-05T20:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543268#M202998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is the Total New here correct? Shouldn't the value be in the last date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Km Group&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Total New&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Total Old&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Years&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z1PZ9R041060&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;11/03/2009&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0-30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;40,25&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;1 Año&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z1PZ9R041060&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;24/08/2009&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0-30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;74,07&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;1 Año&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z1PZ9R041060&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;05/08/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0-30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;493,27&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;289,02&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;2 Año&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Z1PZ9R041060&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;20/08/2010&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0-30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0,00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;89,93&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;2 Año&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543268#M202998</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-11-05T20:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543269#M202999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, they are not wrong, but simply they have no logical sense in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is that in total new, you have the maximum value possible by date and "code" and you have a sum(total) in the last found value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to build another aggregate table with the values calculated, but my datamodel is very complex and I'm trying to do it by set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take a look at "Bryan Dunphy" qlikview document,&amp;nbsp; you'll see you have the same case as me, but for a reason I can't explain, it works for him, but not for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have Bryan's qlikview document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543269#M202999</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-05T20:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543270#M203000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! In that case it is not well calculated, but I hope this is an isolated case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 21:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543270#M203000</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-05T21:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543271#M203001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compared your document with the Dunphy document, and I think I understand why one document works and another doesn't...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the working document, the pivot table has 2 dimensions and the expression calculates the total for one of the dimensions. Hence, visually it shows zeros for all the lines except for the last line, where it calculates the overall total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your document, however, you have 2 dimensions, and your expression is comparing both dimensions and calculates the total for both dimensions. So, in a way you duplicate the way pivot table works by default:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//sum(&amp;nbsp; [Total valor recl. Marca]&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxString(Years)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString(Years))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxString( [Km Group] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString( [Km Group]&amp;nbsp; ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Total&amp;lt;Years, [Km Group]&amp;nbsp;&amp;nbsp; &amp;gt; [Total Old] ),' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IF condition will always render true because each row will hold a unique combination of Years and Km Group, and the formula will always calculate the regular sum, because the Total &amp;lt;&amp;gt; has both Dimensions in it - Years and Km Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get the effect similar to Dunfy's, I'd think you want to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxString(Years) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;below(Total MaxString(Years))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Total &amp;lt;Years&amp;gt; [Total Old] ),' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This should work, unless I misunderstood your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.masterssummit.com/"&gt;www.masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxString(Customer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString(Customer))&lt;/P&gt;&lt;P&gt;&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; or&lt;/P&gt;&lt;P&gt;&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; MaxString([Item Subgroup])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; below(Total MaxString([Item Subgroup]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&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; Sum(Total&amp;lt;Customer,[Item Subgroup]&amp;gt; [Total Stock Wgt]),' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2013 16:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543271#M203001</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-11-17T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543272#M203002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks Oleg for your try, I know what you mean, but the point is that I need to get the same result as &lt;STRONG&gt;"desired result" (the table with green colour)&lt;/STRONG&gt;, and if I do the total only for 1 dimension, I won't get a total by year and kilometer group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-Challenge/m-p/543272#M203002</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-25T10:56:38Z</dc:date>
    </item>
  </channel>
</rss>

