<?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 RANK set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281872#M1201957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What expression are you currently using? I think you should be able to solve the problem by using the TOTAL modifier. Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; Rank(PRODUCT) &amp;amp; ' of ' &amp;amp; Rank(TOTAL PRODUCT)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may need to modify the TOTAL modifier slightly depending on how that grand total should be calculated. For example if it is rank in that particular Sales Group, then:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; Rank(PRODUCT) &amp;amp; ' of ' &amp;amp; Rank(TOTAL &amp;lt;SALESGROUP&amp;gt; PRODUCT)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 14:57:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-11T14:57:04Z</dc:date>
    <item>
      <title>RANK set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281871#M1201956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data with&lt;/P&gt;&lt;P&gt;SALESPERSON&lt;BR /&gt;SALESGROUP&lt;BR /&gt;PRODUCT&lt;BR /&gt;CLIENT&lt;BR /&gt;REVENUE&lt;/P&gt;&lt;P&gt;I'm trying to create a text box which when I select a SALESPERSON, I'm able to get the output:&lt;/P&gt;&lt;P&gt;"Rank is 2 of 16"&lt;/P&gt;&lt;P&gt;meaning Rank is 2 of 16 in this PRODUCT of all SALESPERSONs in that SALESGROUP.&lt;/P&gt;&lt;P&gt;I know rank doesn't take set analysis, but I was wondering if this is at all possible? The way I have it now, whenever I click a salesperson, they become "Rank is 1 of 1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 14:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281871#M1201956</guid>
      <dc:creator />
      <dc:date>2010-10-11T14:53:26Z</dc:date>
    </item>
    <item>
      <title>RANK set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281872#M1201957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What expression are you currently using? I think you should be able to solve the problem by using the TOTAL modifier. Something like:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; Rank(PRODUCT) &amp;amp; ' of ' &amp;amp; Rank(TOTAL PRODUCT)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may need to modify the TOTAL modifier slightly depending on how that grand total should be calculated. For example if it is rank in that particular Sales Group, then:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; Rank(PRODUCT) &amp;amp; ' of ' &amp;amp; Rank(TOTAL &amp;lt;SALESGROUP&amp;gt; PRODUCT)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 14:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281872#M1201957</guid>
      <dc:creator />
      <dc:date>2010-10-11T14:57:04Z</dc:date>
    </item>
    <item>
      <title>RANK set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281873#M1201959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to use an expression along the lines of:&lt;/P&gt;&lt;P&gt;'Rank is ' &amp;amp; rank(Sum(REVENUE) &amp;amp; ' of ' &amp;amp; count(Total SALESPERSON) but this wasn't working as whenever I would select a SALESPERSON,&lt;/P&gt;&lt;P&gt;the output would always be 'Rank is 1 of 1'.&lt;/P&gt;&lt;P&gt;I tried using your expression but am getting a null value.&lt;/P&gt;&lt;P&gt;I'm wondering if I should rank within the script to hardcode a rank value as an alternative option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 15:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281873#M1201959</guid>
      <dc:creator />
      <dc:date>2010-10-11T15:32:16Z</dc:date>
    </item>
    <item>
      <title>RANK set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281874#M1201960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I missed the part about the selection. You want to ignore the selection on SALESPERSON. Probably:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; rank(Sum(REVENUE)) &amp;amp; ' of ' &amp;amp; count({&amp;lt;SALESPERSON=&amp;gt;} SALESPERSON)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That second part should get you the rank of the SALESPERSON ignoring any selections on that field. You may need the TOTAL too depending on how your dimensions are set up in the chart.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'Rank is ' &amp;amp; rank(Sum(REVENUE)) &amp;amp; ' of ' &amp;amp; count({&amp;lt;SALESPERSON=&amp;gt;} TOTAL SALESPERSON)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You may need to modify that Set Analysis if you are making selections on other fields that you don't want to affect the count. If you are selecting one SALESPERSON directly, that should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 16:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281874#M1201960</guid>
      <dc:creator />
      <dc:date>2010-10-11T16:27:42Z</dc:date>
    </item>
    <item>
      <title>RANK set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281875#M1201962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! adding in the ignore selection piece fixed it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 16:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-set-analysis/m-p/281875#M1201962</guid>
      <dc:creator />
      <dc:date>2010-10-11T16:50:18Z</dc:date>
    </item>
  </channel>
</rss>

