<?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: Ranking expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009306#M968204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will suggest you move the calculation to script.&lt;/P&gt;&lt;P&gt;You can then use the Peek() function and RowNo() to Rank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving the calculation to Script helps the App to perform better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post a sample data so that community can help with solution &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 12:55:19 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-09-23T12:55:19Z</dc:date>
    <item>
      <title>Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009301#M968199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following expression: The dimension is a student name.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ratings&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=7'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Questions&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Questions&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '0.00%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When two students have the same percentages, i.e., ranked 2, Qv puts one on top of the other. I wanted to add a column to show their ranks are the same. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&amp;nbsp; - 99%&amp;nbsp;&amp;nbsp;&amp;nbsp; - 1&lt;/P&gt;&lt;P&gt;Jo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 98.6% - 2&lt;/P&gt;&lt;P&gt;Joe&amp;nbsp;&amp;nbsp;&amp;nbsp; - 98.6% - 3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I may have to use rowno() and rank() function but now sure how. Any help is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009301#M968199</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2015-09-23T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009302#M968200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an error in the previous post. I would like that extra ranked column to show&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&amp;nbsp; - 99%&amp;nbsp;&amp;nbsp;&amp;nbsp; - 1&lt;/P&gt;&lt;P&gt;Jo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 98.6% - 2&lt;/P&gt;&lt;P&gt;Joe&amp;nbsp;&amp;nbsp;&amp;nbsp; - 98.6% - 2 (mentioned as 3 in the previous post)&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, 23 Sep 2015 12:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009302#M968200</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2015-09-23T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009303#M968201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try with AutoNumber()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percentage,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(Percentage) as &lt;STRONG style="font-size: 13.3333px;"&gt;Ratings&lt;/STRONG&gt; &lt;SPAN style="text-decoration: line-through;"&gt;Rank&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009303#M968201</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-23T12:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009304#M968202</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;Are you calculating the percentage in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009304#M968202</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-09-23T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009305#M968203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I am calculating in the Expression tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009305#M968203</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2015-09-23T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009306#M968204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will suggest you move the calculation to script.&lt;/P&gt;&lt;P&gt;You can then use the Peek() function and RowNo() to Rank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving the calculation to Script helps the App to perform better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post a sample data so that community can help with solution &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009306#M968204</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-09-23T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009307#M968205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the attached qvw and sample data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009307#M968205</guid>
      <dc:creator>infock12</dc:creator>
      <dc:date>2015-09-23T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009308#M968206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;use Rank function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Rank(COUNT({&amp;lt;Marks={'&amp;gt;=7'}&amp;gt;}GID)/Count(GID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rank(COUNT({&amp;lt;Marks={'&amp;gt;=7'}&amp;gt;}GID)/Count(GID), 1,1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 13:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009308#M968206</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2015-09-23T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking expression</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009309#M968207</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 think you achieve your requirement in UI as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did is to add another calculation as below&lt;/P&gt;&lt;P&gt;=if(above(Num(COUNT({&amp;lt;Marks={'&amp;gt;=7'}&amp;gt;}GID)/Count(GID), '0.00%')) = Num(COUNT({&amp;lt;Marks={'&amp;gt;=7'}&amp;gt;}GID)/Count(GID), '0.00%'),RowNo(TOTAL) -1, RowNo(TOTAL))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 15:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-expression/m-p/1009309#M968207</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-09-23T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

