<?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: How to Calculate Rank from expression.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181506#M382844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rank(&lt;STRONG&gt;total&lt;/STRONG&gt; sum(if(Dept='Sci' and Subj = 'science', Amount*10,&lt;/P&gt;&lt;P&gt;if(Dept='Sci' and Subj='chemi', Amount*5,Amount))),0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139381_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Oct 2016 08:06:46 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-10-02T08:06:46Z</dc:date>
    <item>
      <title>How to Calculate Rank from expression..</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181504#M382842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate the Rank from the expression (here i need to calculate from expression only, not from the source field and also it shouldn't be calculated in the script).&lt;/P&gt;&lt;P&gt;I have attached the QVW file please let me know if anyone can help me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2016 00:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181504#M382842</guid>
      <dc:creator />
      <dc:date>2016-09-26T00:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Rank from expression..</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181505#M382843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you expecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually, we can calculate Ranks are like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Rank(&lt;STRONG&gt;Expression&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;2) Set Rank&lt;/P&gt;&lt;P&gt;3) From script you can try this too&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;if(&lt;STRONG&gt;Expression&lt;/STRONG&gt;=previous(&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;,peek('Rank')+1,1) as Rank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2016 07:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181505#M382843</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-02T07:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Rank from expression..</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181506#M382844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rank(&lt;STRONG&gt;total&lt;/STRONG&gt; sum(if(Dept='Sci' and Subj = 'science', Amount*10,&lt;/P&gt;&lt;P&gt;if(Dept='Sci' and Subj='chemi', Amount*5,Amount))),0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139381_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2016 08:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Calculate-Rank-from-expression/m-p/1181506#M382844</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-10-02T08:06:46Z</dc:date>
    </item>
  </channel>
</rss>

