<?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 Using the Rank function from a list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-Rank-function-from-a-list-box/m-p/312024#M1197457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to use the rank function to get a specific value from a list box. Below is the current formula I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rank(sum(Return * StockQty))=round(count(distinct Date)*&lt;B&gt;&lt;I&gt;ConfidenceLevel)&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;where Return, StockQty and Date are all data lists, and ConfidenceLevel is an input value from a slider. This formula should come back with a value of 0 for where the two are not equal, and -1 for where they are. The RHS of the equation is simply calculating the nth value of the list to match. I am unfortunately unable to get the correct value this way. I can, however, get it if I just plug in a value as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Rank&lt;/EM&gt;&lt;/STRONG&gt;(sum(Return * StockQty))=15&lt;/P&gt;&lt;P&gt;Could someone help me figure out how to use a formula correctly in the RHS of the Rank function?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 17:52:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-09T17:52:56Z</dc:date>
    <item>
      <title>Using the Rank function from a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-Rank-function-from-a-list-box/m-p/312024#M1197457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to use the rank function to get a specific value from a list box. Below is the current formula I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Rank(sum(Return * StockQty))=round(count(distinct Date)*&lt;B&gt;&lt;I&gt;ConfidenceLevel)&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;where Return, StockQty and Date are all data lists, and ConfidenceLevel is an input value from a slider. This formula should come back with a value of 0 for where the two are not equal, and -1 for where they are. The RHS of the equation is simply calculating the nth value of the list to match. I am unfortunately unable to get the correct value this way. I can, however, get it if I just plug in a value as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Rank&lt;/EM&gt;&lt;/STRONG&gt;(sum(Return * StockQty))=15&lt;/P&gt;&lt;P&gt;Could someone help me figure out how to use a formula correctly in the RHS of the Rank function?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 17:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-Rank-function-from-a-list-box/m-p/312024#M1197457</guid>
      <dc:creator />
      <dc:date>2011-03-09T17:52:56Z</dc:date>
    </item>
  </channel>
</rss>

