<?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 incorrect rank after selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878213#M306633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally it should work. But at the moment I haven't time to look deeper in your case - maybe my "dirty" solution from here &lt;A href="https://community.qlik.com/message/764305"&gt;Re: Overall ranking within a table containing several dimensions&lt;/A&gt; could work for you or give you some new hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 13:07:10 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-05-05T13:07:10Z</dc:date>
    <item>
      <title>rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878207#M306627</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 have chart with rank function which shows consecutive ranks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that the rank changes after selecting a branch.&lt;/P&gt;&lt;P&gt;I have already tried the 1 approach inside the set analysis for&amp;nbsp; variables&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rank is calculated on the basis on the first column. &lt;/P&gt;&lt;P&gt;I have used the following expression for RANK in my chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RowNo(total) -&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; rangesum(above(total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(num(rank(total Column(1),1))=above(num(rank(total Column(1),1))),1,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0,RowNo(total))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878207#M306627</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878208#M306628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why didn't you use a normal rank-function like: rank(sum({1} value))? References to other columns like column(x) or using from the expression-label return a kind of reflection which couldn't be (always) used in complex calculations with total or aggr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878208#M306628</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-05T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878209#M306629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i wanted consecutive ranks .Hence i did not use the simple rank function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878209#M306629</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878210#M306630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/Marcus_Sommer"&gt;Marcus&lt;/A&gt;‌, he was unable to use straight rank function because of reasons discussed in this thread &lt;A href="https://community.qlik.com/message/766364"&gt;how to get the consecutive rank when there are same ranks in column using rank function&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878210#M306630</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-05T12:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878211#M306631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I understand. To be independent from selections you will need to fix the rank-expression by using a direct aggregation-function or you fixed the expression from the other column. If you could use a sorting on your expression a simple rowno() will also return a consecutive rank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe an alternatively could be to detach the chart or the use from alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878211#M306631</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-05T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878212#M306632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it but did not work &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878212#M306632</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T12:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: rank function showing incorrect rank after selection</title>
      <link>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878213#M306633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally it should work. But at the moment I haven't time to look deeper in your case - maybe my "dirty" solution from here &lt;A href="https://community.qlik.com/message/764305"&gt;Re: Overall ranking within a table containing several dimensions&lt;/A&gt; could work for you or give you some new hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank-function-showing-incorrect-rank-after-selection/m-p/878213#M306633</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-05T13:07:10Z</dc:date>
    </item>
  </channel>
</rss>

