<?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 which based on variance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938958#M323998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try Num(Rank(TOTAL&lt;STRONG&gt;-&lt;/STRONG&gt;(Column(2)-Column(1)),1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 18:32:51 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2015-12-02T18:32:51Z</dc:date>
    <item>
      <title>Ranking which based on variance</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938957#M323997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How will assign ranking with based on expression (Variance),&amp;nbsp; i have given rank below screen shot way. but i need reverse like please look into second screenshot.&lt;/P&gt;&lt;P&gt;.&lt;IMG __jive_id="107891" alt="1.PNG" class="jive-image image-1" height="322" src="https://community.qlik.com/legacyfs/online/107891_1.PNG" style="height: 322px; width: 290.91px;" width="291" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="107892" alt="2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/107892_2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need above way Please help me ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Advance Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Muna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938957#M323997</guid>
      <dc:creator>Srinivas</dc:creator>
      <dc:date>2015-12-02T18:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking which based on variance</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938958#M323998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try Num(Rank(TOTAL&lt;STRONG&gt;-&lt;/STRONG&gt;(Column(2)-Column(1)),1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938958#M323998</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-12-02T18:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking which based on variance</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938959#M323999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use the rank function to get the result you want. Try rank( sum(Qty)-sum(Sales),0,1). Perhaps the result of that is satisfactory. Otherwise you may have to calculate this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date:&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;if(Sales&amp;lt;='500','30-Nov',&lt;/P&gt;&lt;P&gt;if(Sales&amp;gt;='500', '31-Oct')) as Monthend,&lt;/P&gt;&lt;P&gt;Year(Date) as Year,&lt;/P&gt;&lt;P&gt;Month(Date) as Month,&lt;/P&gt;&lt;P&gt; Qty, &lt;/P&gt;&lt;P&gt;Sales,&lt;/P&gt;&lt;P&gt;Sales-Qty as Variance&lt;/P&gt;&lt;P&gt;FROM &lt;C&gt; (ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;LOAD *, Autonumber(Variance) as Rank&lt;/P&gt;&lt;P&gt;Resident Result&lt;/P&gt;&lt;P&gt;Order by Variance;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938959#M323999</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-02T18:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking which based on variance</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938960#M324000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, &lt;/P&gt;&lt;P&gt;As per your suggestion i did in back-end edit script level that is coming correct, can we do in front end at straight table level, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need in front end level,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Advance Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Muna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 01:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938960#M324000</guid>
      <dc:creator>Srinivas</dc:creator>
      <dc:date>2015-12-03T01:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking which based on variance</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938961#M324001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestion from &lt;A href="https://community.qlik.com/qlik-users/21667"&gt;cleveranjos&lt;/A&gt; seems to work correctly:&lt;/P&gt;&lt;P&gt;=Num(Rank(TOTAL -(Column(2)-Column(1)),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result in your table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="t1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/107933_t1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 05:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-which-based-on-variance/m-p/938961#M324001</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-12-03T05:24:46Z</dc:date>
    </item>
  </channel>
</rss>

