<?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: Help with aggr/Rank functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550082#M479706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about selecting all the candidates that are in the top third/bottom third instead of doing it in chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried guessing exactly what you are trying to do but there is no Result field in your excel file. I assumed since it is question pass rate, it is the amount of people that answered that question (number of candidates). I used a dimension of QuestionNo and expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(PointsAwarded)/count(distinct RegistrationNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I added are two text boxes that will select the top third and bottom third candidates based on total score.&lt;/P&gt;&lt;P&gt;I added an action so when you click, it selects those candidates. I used the formulas using a Select in Field action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat({1}if(aggr(rank(sum({1}PointsAwarded), 4, 1), RegistrationNo) &amp;lt;= count({1}total distinct RegistrationNo)/3, RegistrationNo), '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat({1}if(aggr(rank(sum({1}PointsAwarded), 4, 1), RegistrationNo) &amp;gt;= count({1}total distinct RegistrationNo)*2/3, RegistrationNo), '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't accomplish what you are looking for, can you describe in more detail and maybe post a sample application that demonstrates your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jan 2014 15:43:56 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-01-22T15:43:56Z</dc:date>
    <item>
      <title>Help with aggr/Rank functions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550081#M479705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to QV and even newer to this forum so please bear with me if I'm asking a stupid question/have got it completely wrong!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on an tool to analyse examination performance by capturing the question responses given by candidates. I've become stuck when I try and calculate question pass rates for the top third and bottom third of candidates by total score awarded. Calculating the overall pass rate is simply sum(PointsAwarded)/count(Result) which returns a percentage - I'm trying to do the same thing but on the top and bottom 33 percentiles by overall score. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've so far tried *many* variations of... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(aggr(if(Rank(TotalPointsAwarded)&amp;lt;=(count(Result)/3), PointsAwarded), QuestionNo))/(count(Result)/3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using this as a calculated dimension, expression and conditional expression in, both, pivot and straight tables. I've also tried using the 'fractile' function but can't get either to return anything meaningful. Even when I try just creating a table to return the top ie 5 scores I can't get a simplified version of the above to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any and all help would be gratefully received!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 12:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550081#M479705</guid>
      <dc:creator />
      <dc:date>2014-01-22T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr/Rank functions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550082#M479706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about selecting all the candidates that are in the top third/bottom third instead of doing it in chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried guessing exactly what you are trying to do but there is no Result field in your excel file. I assumed since it is question pass rate, it is the amount of people that answered that question (number of candidates). I used a dimension of QuestionNo and expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(PointsAwarded)/count(distinct RegistrationNo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I added are two text boxes that will select the top third and bottom third candidates based on total score.&lt;/P&gt;&lt;P&gt;I added an action so when you click, it selects those candidates. I used the formulas using a Select in Field action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat({1}if(aggr(rank(sum({1}PointsAwarded), 4, 1), RegistrationNo) &amp;lt;= count({1}total distinct RegistrationNo)/3, RegistrationNo), '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='(' &amp;amp; concat({1}if(aggr(rank(sum({1}PointsAwarded), 4, 1), RegistrationNo) &amp;gt;= count({1}total distinct RegistrationNo)*2/3, RegistrationNo), '|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't accomplish what you are looking for, can you describe in more detail and maybe post a sample application that demonstrates your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 15:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550082#M479706</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-01-22T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with aggr/Rank functions</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550083#M479707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to read this post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/309422"&gt;Re: calcul moyenne sur certains enregistrements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg({&amp;lt;TotalPointsAwarded={"&amp;lt;=$(=Fractile(TotalPointsAwarded,33/100))"}&amp;gt; + &lt;/P&gt;&lt;P&gt;&amp;lt;TotalPointsAwarded={"&amp;gt;=$(=Fractile(TotalPointsAwarded,66/100))"}&amp;gt;} TotalPointsAwarded)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2014 21:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-aggr-Rank-functions/m-p/550083#M479707</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-01-22T21:01:30Z</dc:date>
    </item>
  </channel>
</rss>

