<?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 Strange behaviour of Rank function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643008#M235599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the last two days I have been struggling with some strange behaviour of the Rank function:&lt;/P&gt;&lt;P&gt;I have a straight table which shows a score for different companies, on a certain item. This score is calculated with the following expression:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Score&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; * Weight) / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Weight&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;I am using the same expression in my Rank function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Rank((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Score&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; * Weight) / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Weight)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;This results in the following table:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="367"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Company&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Score&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Rank&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: none; border-bottom: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1-2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1-2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,76&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,387096774&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2,8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;As you can see, Company 1 and Company 2 share positions 1 and 2 in this ranking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Now, when making a selection in a field, which does not in any way change the result set, the table looks as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="549"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Company&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Score&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Rank&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;sum(Score)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;# of rows&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;sum(weight)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: none; border-bottom: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;27&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;14,734320624349&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;27&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;15,078983095094&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,76&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;94&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;25&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;13,532420726367&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,387096774&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;105&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;31&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;24,126372952151&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5,5848085537386&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2,8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5,6965047248133&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The score stays exactly the same, but the ranking of Company 1 and Company 2 changed from 1-2 to 1 for Company 1 and 2 for Company 2. &lt;/P&gt;&lt;P&gt;I added columns to show the sum of Score and the sum of Weight fields. The values in these columns do not change when I change the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here? (I already tried fiddling with the parameters for format and mode in the Rank function, but this did not solve the issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional info: I am using QV 11.2 SR6 64 bits Desktop on Windows 8. The dataset I am using is fairly large (aprox. 100M rows).&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 07:21:11 GMT</pubDate>
    <dc:creator>svanderwerf</dc:creator>
    <dc:date>2014-05-22T07:21:11Z</dc:date>
    <item>
      <title>Strange behaviour of Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643008#M235599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the last two days I have been struggling with some strange behaviour of the Rank function:&lt;/P&gt;&lt;P&gt;I have a straight table which shows a score for different companies, on a certain item. This score is calculated with the following expression:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Score&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; * Weight) / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Weight&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;I am using the same expression in my Rank function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Rank((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Score&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; * Weight) / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ItemCode&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; = {'General_01'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Weight)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;This results in the following table:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="367"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Company&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Score&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Rank&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: none; border-bottom: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1-2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1-2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,76&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,387096774&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="139"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2,8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;As you can see, Company 1 and Company 2 share positions 1 and 2 in this ranking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Now, when making a selection in a field, which does not in any way change the result set, the table looks as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="549"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Company&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Score&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;Rank&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;sum(Score)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;# of rows&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-left: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: #333333; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt;sum(weight)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: none; border-bottom: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: whitesmoke; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black; font-size: 8.0pt; font-family: 'Tahoma','sans-serif';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;27&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;14,734320624349&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4,111111111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;111&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;27&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;15,078983095094&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,76&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;94&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;25&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;13,532420726367&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3,387096774&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;105&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;31&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;24,126372952151&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5,5848085537386&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gainsboro 1.0pt; border-top: none; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;Company 6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="129"&gt;&lt;P align="right" style="margin-bottom: .0001pt; text-align: right;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;2,8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="64"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="60"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gainsboro 1.0pt; border-right: solid gainsboro 1.0pt; background: white; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="99"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Tahoma','sans-serif'; color: #333333;"&gt;5,6965047248133&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The score stays exactly the same, but the ranking of Company 1 and Company 2 changed from 1-2 to 1 for Company 1 and 2 for Company 2. &lt;/P&gt;&lt;P&gt;I added columns to show the sum of Score and the sum of Weight fields. The values in these columns do not change when I change the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here? (I already tried fiddling with the parameters for format and mode in the Rank function, but this did not solve the issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional info: I am using QV 11.2 SR6 64 bits Desktop on Windows 8. The dataset I am using is fairly large (aprox. 100M rows).&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 07:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643008#M235599</guid>
      <dc:creator>svanderwerf</dc:creator>
      <dc:date>2014-05-22T07:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour of Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643009#M235600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but first two rows have different sum(weight).&lt;/P&gt;&lt;P&gt;May you share example app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 07:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643009#M235600</guid>
      <dc:creator />
      <dc:date>2014-05-22T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour of Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643010#M235601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot share an example (due to confidentiality agreements).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, you are correct: the weight is different on the first two rows. But in this case the weight on all rows for each company is the same. Changing the selection in the way I mentioned does not change the result for 'Weight' and thus it does not change the Score (and should not change the ranking too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The weight for all rows for Company 1 is 0,545715 and for Company 2 the weight is 0,5584 for each row. &lt;/P&gt;&lt;P&gt;But whatever weight it would be, the selected rows for the rank function do not change when changing the selection, so the actual outcome of the score does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 09:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643010#M235601</guid>
      <dc:creator>svanderwerf</dc:creator>
      <dc:date>2014-05-22T09:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour of Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643011#M235602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prapare sample with this one dashbord, 1 expression and random data but working as you described.&lt;/P&gt;&lt;P&gt;it will be easier to found reason.:)&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;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 09:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643011#M235602</guid>
      <dc:creator />
      <dc:date>2014-05-22T09:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour of Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643012#M235603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dariusz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies for not getting back to you sooner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am not able to reproduce this error in a sample dashboard with random data. It seems that simplifying my datamodel (i.e. cutting out QV-tables that only serve as link tables), ends this behaviour. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help so far!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-behaviour-of-Rank-function/m-p/643012#M235603</guid>
      <dc:creator>svanderwerf</dc:creator>
      <dc:date>2014-06-26T09:36:56Z</dc:date>
    </item>
  </channel>
</rss>

