<?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: Count If Greater Than Percentile in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95267#M457740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some further thought on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can calculate the correct Percentile value I want to use with the fractile formula, but it is the counting of number of relationships part that causes it to fail (I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula below gives me the figure I need at a region level.&lt;/P&gt;&lt;P&gt;FRACTILE(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(TOTAL &amp;lt;RELN_NBR&amp;gt; {$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'},AMOUNT-={'0'} &amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,RGN_DESC,RELN_NBR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to apply this by counting the relationships I have where this condition is true - this is where things get a little screwy and fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(SUM({$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'},AMOUNT-={'0'}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}AMOUNT),RELN_NBR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRACTILE(AGGR(SUM(TOTAL &amp;lt;RELN_NBR&amp;gt; {$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *={'Capital Markets'},AMOUNT-={'0'} &amp;gt;}AMOUNT),RGN_DESC,RELN_NBR),0.5)&lt;/P&gt;&lt;P&gt;,RGN_DESC)&lt;/P&gt;&lt;P&gt;,RGN_DESC)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this count formula I took the approach of using the AGGR on the IF(SUM x) first part of the formula, thinking this is calculation a list of relationships and the AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When adding back in the fractile formula (which works independently), it does not give me the result (just 0). I confirmed the approach works by putting a number in place of the fractile part - and the count is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2018 15:19:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-05T15:19:50Z</dc:date>
    <item>
      <title>Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95264#M457737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a calculation which sums the number of clients who have revenue greater than nth percentile of the clients within their region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table below is a pivot of a larger set of data with multiple rows per client. The sum of the revenue is calculated using the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'} &amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to calculate the 50th percentile figure in the 50PCT column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRACTILE(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM({$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'},AMOUNT-={'0'} &amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,RELN_NBR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this only works when aggregated at the sum level in the table below. As soon as I try to use it in the 'results' table (counting the number of clients where revenue &amp;gt; 50th percentile, the result will not calculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying using TOTAL and NODISTINCT as guided elsewhere in some researching but I just cant seem to get it to calculate the 50th percentile at the right level to be able to apply to each client individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the aggr approach is the right way as I essentially need a temporary table for each row which contains the results of all the rows of the table into that cell to return the 50th percentile and then run a count if &amp;gt; fractile result to get the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client Revenue Table&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" 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;RGN_DESC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;RELN_NBR&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;2018 CNR CM Clients&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;50PCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;STRONG&gt;50PCT (Using TOTAL)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;16065 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;1085 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;16,065&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;EMEA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CLIENT1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;13780&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;13780&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="font-size: 12px; background-color: #f5f5f5;"&gt;16,065&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;EMEA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CLIENT2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1389&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1389&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="font-size: 12px; background-color: #f5f5f5;"&gt;16,065&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;EMEA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CLIENT3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;781&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;781&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="font-size: 12px; background-color: #f5f5f5;"&gt;16,065&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;EMEA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CLIENT4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;116&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;116&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="font-size: 12px; background-color: #f5f5f5;"&gt;16,065&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result Table&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 312px; height: 57px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Region&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;# clients &amp;gt;50th Percentile&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;EMEA&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 09:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95264#M457737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95265#M457738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this: &lt;A href="https://community.qlik.com/thread/196147"&gt;statistical aggregations - parts between frac 0.1 and 0.9&lt;/A&gt; gives you some ideas to find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 11:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95265#M457738</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-05T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95266#M457739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the direction - not helping so far though. Could just be my understanding!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95266#M457739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95267#M457740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some further thought on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can calculate the correct Percentile value I want to use with the fractile formula, but it is the counting of number of relationships part that causes it to fail (I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula below gives me the figure I need at a region level.&lt;/P&gt;&lt;P&gt;FRACTILE(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(TOTAL &amp;lt;RELN_NBR&amp;gt; {$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'},AMOUNT-={'0'} &amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,RGN_DESC,RELN_NBR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to apply this by counting the relationships I have where this condition is true - this is where things get a little screwy and fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(SUM({$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *= {'Capital Markets'},AMOUNT-={'0'}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}AMOUNT),RELN_NBR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRACTILE(AGGR(SUM(TOTAL &amp;lt;RELN_NBR&amp;gt; {$&amp;lt;ASPECT = {'CNR'},FACT_YEAR = {'2018'}, Prod_Line *={'Capital Markets'},AMOUNT-={'0'} &amp;gt;}AMOUNT),RGN_DESC,RELN_NBR),0.5)&lt;/P&gt;&lt;P&gt;,RGN_DESC)&lt;/P&gt;&lt;P&gt;,RGN_DESC)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this count formula I took the approach of using the AGGR on the IF(SUM x) first part of the formula, thinking this is calculation a list of relationships and the AMOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When adding back in the fractile formula (which works independently), it does not give me the result (just 0). I confirmed the approach works by putting a number in place of the fractile part - and the count is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95267#M457740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T15:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95268#M457741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure that your aggr() and/or the nestings are defined properly. If I reduce the expression to the essentials by removing the condition/total parts it looked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr(IF(AGGR(SUM(AMOUNT),RELN_NBR)&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FRACTILE(AGGR(SUM(AMOUNT),RGN_DESC,RELN_NBR),0.5)&lt;/P&gt;&lt;P&gt;,RGN_DESC) ,RGN_DESC))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which provides a better readability. I noticed that the various aggr contain different dimensions. This might be intended but I suggest that you check it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 07:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95268#M457741</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-06T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95269#M457742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus - I will take another look on that front. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wondered also if creating a variable for the Fractile might be an approach so that it has some element of independence versus the count I am trying to do on specific rels. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 07:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95269#M457742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-06T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count If Greater Than Percentile</title>
      <link>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95270#M457743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if your fractile is always a total-value against your chart (independent of the used dimensions there) then you could outsource it into a variable, maybe like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var:&lt;/P&gt;&lt;P&gt;= FRACTILE(AGGR(SUM(AMOUNT),RGN_DESC,RELN_NBR),0.5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your expression might be even simplified in this direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(-(AGGR(SUM(AMOUNT),RELN_NBR) &amp;gt; $(var)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 08:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-If-Greater-Than-Percentile/m-p/95270#M457743</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-06T08:16:37Z</dc:date>
    </item>
  </channel>
</rss>

