<?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: Sum largest values each year. Rank, Sum &amp; Aggr? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331747#M836094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is only due to two rows for Company A, it has aggregated both values and that is why it is making into first three ranks after first row. First row addition rank is not making into first 3 show it is showing correct value. having two rows for Company A is right behavior or its a data issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 17:06:23 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2017-05-24T17:06:23Z</dc:date>
    <item>
      <title>Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331740#M836087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to make a graph which shows the sum of the 3 largest values each year as a percentage of the sum of all values each year. I've tried to use rank, sum and aggr, but it does not work for me. Can someone guide me in the right direction by providing me with a link to a thread where this is discussed (I have not found one that's appropriate, but perhaps you will) or by helping me directly? Pleas find attached example of input data to QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331740#M836087</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331741#M836088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would be the expected output based on the sample attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331741#M836088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T15:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331742#M836089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, do you have years in different columns or do you have an year field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331742#M836089</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331743#M836090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you can check if this is correct - &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164648_Capture.PNG" style="height: 229px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331743#M836090</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-24T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331744#M836091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost. I have had this problem before. It seems as if the formula sums more values than the three biggest values... The first year is correct, but the second is not correct when I compare to my excel sheet.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Rank excel.JPG" class="jive-image image-1" src="/legacyfs/online/164646_QV Rank excel.JPG" style="height: auto;" /&gt;&lt;IMG alt="QV Rank.JPG" class="jive-image image-2" src="/legacyfs/online/164647_QV Rank.JPG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331744#M836091</guid>
      <dc:creator />
      <dc:date>2017-05-24T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331745#M836092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Company A repeats twice, is this by mistake?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331745#M836092</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T16:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331746#M836093</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;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Key = {"=Aggr(Rank(Sum(Sales)), Year, Company) &amp;lt; 4"}&amp;gt;} Sales)/Sum(Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Key is created in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CrossTable(Year, Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Company, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2008], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2009], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2010], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2011], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2012], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2013], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2015], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2016], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2017]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[..\..\Downloads\QVRANK.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is QV);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Company&amp;amp;Year as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164644_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331746#M836093</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sum largest values each year. Rank, Sum &amp; Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331747#M836094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is only due to two rows for Company A, it has aggregated both values and that is why it is making into first three ranks after first row. First row addition rank is not making into first 3 show it is showing correct value. having two rows for Company A is right behavior or its a data issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 17:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-largest-values-each-year-Rank-Sum-Aggr/m-p/1331747#M836094</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-24T17:06:23Z</dc:date>
    </item>
  </channel>
</rss>

