<?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: Text box, ranking and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654452#M239130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same concept with set analysis would apply, but instead of 1 you would use the range of your average grades. So assuming 90-100 is an A.&amp;nbsp; You would &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM({$&amp;lt;Rank={'&amp;gt;=90'}&amp;gt;}Fees), if it was 80 through 89 is a B you would add an additional set.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM({$&amp;lt;Rank={'&amp;gt;=80'},Rank={'&amp;lt;=89'}&amp;gt;}Fees)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2014 14:10:23 GMT</pubDate>
    <dc:creator>NickHoff</dc:creator>
    <dc:date>2014-08-27T14:10:23Z</dc:date>
    <item>
      <title>Text box, ranking and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654449#M239127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Hi All,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;DIV&gt;Our data includes classes with students and their relative rank per class.&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each student attends only 1 class.&lt;/P&gt;&lt;P&gt;Class Student_id Student_rank_in_class&lt;/P&gt;&lt;P&gt;In another table, each student has the tuition fee paid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Student_id Fee&lt;/P&gt;&lt;P&gt;We want to display in a text box the sum of the fees of the top-ranking students per class.&lt;/P&gt;&lt;P&gt;In another text box the sum of fees paid by the 2nd-ranking students per class.&lt;/P&gt;&lt;P&gt;We know how to do it in a straight table, but face some trouble with the text boxes.&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;We tried using FirstSortedValue in set-analysis expressions with internal AGGR, but it seems that using a set analysis dimension limit such as DIMENSION = "{$(AGGR(...))}" does not work.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 16:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654449#M239127</guid>
      <dc:creator />
      <dc:date>2014-08-26T16:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text box, ranking and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654450#M239128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Text box: =SUM({$&amp;lt;Rank={'1'}&amp;gt;}Fees)&amp;nbsp;&amp;nbsp; Will display the sum of the fees for the student where rank = 1&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; =SUM({$&amp;lt;Rank={'1'}&amp;gt;}Fees)&amp;nbsp;&amp;nbsp; Will display the sum of the fees for the student where rank = 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 16:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654450#M239128</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2014-08-26T16:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Text box, ranking and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654451#M239129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the ranks were not 1,2,3 but rather arbitrary numeric average grades (let's assume without repetitions)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 22:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654451#M239129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-26T22:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Text box, ranking and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654452#M239130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same concept with set analysis would apply, but instead of 1 you would use the range of your average grades. So assuming 90-100 is an A.&amp;nbsp; You would &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM({$&amp;lt;Rank={'&amp;gt;=90'}&amp;gt;}Fees), if it was 80 through 89 is a B you would add an additional set.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM({$&amp;lt;Rank={'&amp;gt;=80'},Rank={'&amp;lt;=89'}&amp;gt;}Fees)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 14:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-ranking-and-set-analysis/m-p/654452#M239130</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2014-08-27T14:10:23Z</dc:date>
    </item>
  </channel>
</rss>

