<?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: Rank function showing all 1s in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045470#M351514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank( &lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; avg( Contribution))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116330_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 19:29:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-29T19:29:39Z</dc:date>
    <item>
      <title>Rank function showing all 1s</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045469#M351513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a similar question to this, &lt;A href="https://community.qlikview.com/thread/51784"&gt;https://community.qlikview.com/thread/51784&lt;/A&gt;, which was never answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some client churn information that I am attempting to place in a straight table chart. I need to sort them in order of contribution and then highlight the top three drivers (by shading all the others). I am successfully using the Rank function to achieve the shading.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-02-29 Test Rank and Shade 1.png" class="jive-image image-1" src="/legacyfs/online/116247_2016-02-29 Test Rank and Shade 1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is looking good, but then I need to add an extra description column for the key insights and now the Rank function returns all 1s and the table sort stops working.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-02-29 Test Rank and Shade 2.png" class="jive-image image-2" src="/legacyfs/online/116248_2016-02-29 Test Rank and Shade 2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain how to fix this problem? I suspect I need to use the Aggr function to cater for the extra dimension, but I have not been able to find any information that explains this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Barnaby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 00:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045469#M351513</guid>
      <dc:creator>barnaby</dc:creator>
      <dc:date>2016-02-29T00:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function showing all 1s</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045470#M351514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank( &lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; avg( Contribution))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116330_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045470#M351514</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-29T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function showing all 1s</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045471#M351515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny - that's it. After seeing this, I re-read the help on the Rank function and I now understand it. I found it completely cryptic beforehand.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-03-01 Test Rank and Shade 3.png" class="jive-image image-1" src="/legacyfs/online/116351_2016-03-01 Test Rank and Shade 3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I now have what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Barnaby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 23:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-showing-all-1s/m-p/1045471#M351515</guid>
      <dc:creator>barnaby</dc:creator>
      <dc:date>2016-02-29T23:06:58Z</dc:date>
    </item>
  </channel>
</rss>

