<?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: Ranking position on a text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942713#M324992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(Rank(Sum({&amp;lt;Dim1, Dim2 = {'X'}&amp;gt;} Value)), Dim1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 17:38:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-21T17:38:16Z</dc:date>
    <item>
      <title>Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942708#M324987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build a text object showing the position (ranking) of the customer against it's competitors.&lt;/P&gt;&lt;P&gt;Given the following source data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer Valuation&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90%&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95%&lt;/P&gt;&lt;P&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need that when the user filters a customer, the text box shows it's position (ranking) against the other competitors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example before A is the 2nd, B is the 1st and C is the 3rd, according to the column Valuation. So when the user filters customer A we need to see in the text box something like '#2'.&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>Wed, 16 Dec 2015 17:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942708#M324987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942709#M324988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this kind of expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(Rank(Sum({&amp;lt;Dim&amp;gt;} Value)), Dim)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 90&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B, 95&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C, 70&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109189_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942709#M324988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-16T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942710#M324989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend adding an expression for rank using the rank function within set analysis - if you do this I believe you will need to use the '1' option in set analysis to make sure your ranking is based on your entire dataset isntead of what is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942710#M324989</guid>
      <dc:creator />
      <dc:date>2015-12-16T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942711#M324990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you, It works perfect!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 17:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942711#M324990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-16T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942712#M324991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Every one again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as the solution provided works for the initial question, there is another point I did not realize when posting it. The probles is the same, but I need that the rank acts only over some registers. With this sample script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sample Script:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Dim1, Dim2, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;A, X, 90&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;B, X, 95&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;C, Y, 70&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;D, X, 60&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;I need that the mentioned expression: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Aggr(Rank(Sum({&amp;lt;Dim1&amp;gt;} Value)), Dim1)&lt;/STRONG&gt;&amp;nbsp; takes into consideration for the ranking just the registers where Dim2 is 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;so in the example provided, for D the ranked value should be 3rd instead of 4th.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Any help?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942712#M324991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-21T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942713#M324992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(Rank(Sum({&amp;lt;Dim1, Dim2 = {'X'}&amp;gt;} Value)), Dim1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 17:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942713#M324992</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-21T17:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942714#M324993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942714#M324993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-22T10:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking position on a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942715#M324994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;this post is really useful ,&lt;/P&gt;&lt;P&gt;this syntax also works fine when you select values from a list box,&lt;/P&gt;&lt;P&gt;but when am trying to replicate this logic with hardcoding values for a dimension ,it doesn't seems to be working&lt;/P&gt;&lt;P&gt;fine,can u please help in this regard:&lt;/P&gt;&lt;P&gt;like for eg:rank(count({&amp;lt;dimension&amp;gt;}distinct id),dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;this is working fine,so if I select any value from the list box giving the right rank,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but if I do like this:rank(count({&amp;lt;dimension={'value1'}&amp;gt;}distinct id),dimension)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;this is not taking the right ranks for the dimension values&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(selections made on the sheet for other filters)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-position-on-a-text-box/m-p/942715#M324994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-21T11:38:15Z</dc:date>
    </item>
  </channel>
</rss>

