<?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 Top 20% Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875404#M996989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a chart in QV in which I want to see the SUM of the Values of the TOP 20% of observations with a time dimention (MONTHYEAR). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specificially I want to compare the TOP 20% of one month against the TOP 20% of other months (every month shows its own TOP 20% observations).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;REGISTER={"=(rank(sum(Value)))&amp;lt;=(ceil(count(TOTAL&amp;lt;MonthYear&amp;gt; distinct (REGISTER))*0.20))"}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it's Working!&lt;/P&gt;&lt;P&gt;Unfortunately it only works when I have only one MONTH selected. When I pick more than one MONTH it goes in a different way which I haven't figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is good help.&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 22:19:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-02T22:19:29Z</dc:date>
    <item>
      <title>Top 20% Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875404#M996989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a chart in QV in which I want to see the SUM of the Values of the TOP 20% of observations with a time dimention (MONTHYEAR). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specificially I want to compare the TOP 20% of one month against the TOP 20% of other months (every month shows its own TOP 20% observations).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;REGISTER={"=(rank(sum(Value)))&amp;lt;=(ceil(count(TOTAL&amp;lt;MonthYear&amp;gt; distinct (REGISTER))*0.20))"}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it's Working!&lt;/P&gt;&lt;P&gt;Unfortunately it only works when I have only one MONTH selected. When I pick more than one MONTH it goes in a different way which I haven't figured out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is good help.&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 22:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875404#M996989</guid>
      <dc:creator />
      <dc:date>2015-07-02T22:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Top 20% Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875405#M996990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The set expression is only evaluated once per chart, not per dimension value (i.e. per MONTHYEAR).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( Rank(Sum(Value)) &amp;lt;= Ceil(Count( TOTAL&amp;lt;MonthYear&amp;gt; DISTINCT REGISTER)*0.20),Sum(Value))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,MonthYear, REGISTER))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 22:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875405#M996990</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-02T22:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Top 20% Sum</title>
      <link>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875406#M996991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked without a problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Swuehl&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.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>Thu, 02 Jul 2015 22:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-20-Sum/m-p/875406#M996991</guid>
      <dc:creator />
      <dc:date>2015-07-02T22:48:34Z</dc:date>
    </item>
  </channel>
</rss>

