<?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: Set Analysis to sum amount based on max version in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657166#M239931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo - you're the best.&lt;/P&gt;&lt;P&gt;Works like a charm - exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 19:52:04 GMT</pubDate>
    <dc:creator>spinchuk</dc:creator>
    <dc:date>2014-07-25T19:52:04Z</dc:date>
    <item>
      <title>Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657162#M239927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body help with creating expression to calculate Amount for Max(Version) or row in data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is like table on the left, and I need results in table on the right (see pic below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="63160" alt="data.GIF.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/63160_data.GIF.gif" style="width: 620px; height: 137px;" /&gt;&lt;/P&gt;&lt;P&gt;Need the expression for "Latest" column. Currently, Estimate B missing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I attached QVW with instructions.&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>Fri, 25 Jul 2014 17:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657162#M239927</guid>
      <dc:creator>spinchuk</dc:creator>
      <dc:date>2014-07-25T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657163#M239928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create two variables:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMaxA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Max( {&amp;lt; Estimate = {'A'} &amp;gt;} Version)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMaxB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Max( {&amp;lt; Estimate = {'B'} &amp;gt;} Version)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. In the chart expression:&lt;/P&gt;&lt;P&gt;&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;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If( Estimate = 'A', Sum({$&amp;lt;&lt;/TD&gt;&lt;TD&gt;Version = {$(vMaxA)} &amp;gt;}&lt;/TD&gt;&lt;TD&gt;Amount),&lt;/TD&gt;&lt;TD&gt;Sum({$&amp;lt;&lt;/TD&gt;&lt;TD&gt;Version = {$(vMaxB)} &amp;gt;}&lt;/TD&gt;&lt;TD&gt;Amount))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think is a ugly response. It could be better using 'aggr'...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 19:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657163#M239928</guid>
      <dc:creator />
      <dc:date>2014-07-25T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657164#M239929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bernardo, but A and B is just an example of data .. i have thousands of different entries for dimension , so creating variables for each value in dimension will not work.&lt;/P&gt;&lt;P&gt;Any other ideas please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 19:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657164#M239929</guid>
      <dc:creator>spinchuk</dc:creator>
      <dc:date>2014-07-25T19:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657165#M239930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with&lt;/P&gt;&lt;P&gt;sum(aggr(FirstSortedValue(Amount, -Version),Estimate,Category) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 19:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657165#M239930</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-25T19:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657166#M239931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo - you're the best.&lt;/P&gt;&lt;P&gt;Works like a charm - exactly what I was looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 19:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657166#M239931</guid>
      <dc:creator>spinchuk</dc:creator>
      <dc:date>2014-07-25T19:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to sum amount based on max version</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657167#M239932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi spinchuk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help to solve your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Dimensions Tab -&amp;gt; click on Add Calculated Dimension and add the following expresion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63157_test.PNG.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Select the calculated dimension and check Enable Conditional box. Then type 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63176_test.PNG.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In Expresions tab, select Latest (no total) expresion and the following formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63177_test.PNG.png" style="width: 620px; height: 549px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will generate the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63178_test.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 21:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-sum-amount-based-on-max-version/m-p/657167#M239932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T21:48:35Z</dc:date>
    </item>
  </channel>
</rss>

