<?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: question about rank function in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820107#M2873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this might do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(R&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(S&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;um&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Budget]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; )), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 13:49:28 GMT</pubDate>
    <dc:creator>jpenuliar</dc:creator>
    <dc:date>2015-02-18T13:49:28Z</dc:date>
    <item>
      <title>question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820099#M2865</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 have a question concerning rank function.&lt;/P&gt;&lt;P&gt;Say, I have two tables (see the file attached).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In the first table&lt;/SPAN&gt; I can show TOP brands from position Number ‘X’ to position Number ‘Y’. X&amp;amp;Y values are user-defined and can be set in input boxes. E.g. a user can set TOP brands (from №11 to №20). This functionality is implemented by the means of calculated dimension in the table using aggr&amp;amp;rank function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In the second table&lt;/SPAN&gt; I show all possible brands always from position 1 to the maximal position.&lt;/P&gt;&lt;P&gt;In both tables I set Brands order using rank function: rank([Budget]).&lt;/P&gt;&lt;P&gt;As you can see the sort order in both tables is different. For instance HYUNDAI is defined as number 1 in the first table and as number 11 in the second table.&lt;/P&gt;&lt;P&gt;I need HYUNDAI to be number 11 in both tables.&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa Filonova&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 11:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820099#M2865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-17T11:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820100#M2866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below as a 2nd expression you can rename as Rank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(aggr(rank( sum( {$&amp;lt;Brands&amp;gt;} Budget ), Brands)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820100#M2866</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-02-17T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820101#M2867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to define the sort order in the first table using this function, but the result is not correct. All the brands have got sort number 26. See the file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 09:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820101#M2867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820102#M2868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attached your qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 09:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820102#M2868</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-02-18T09:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820103#M2869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, see the file attached.&lt;/P&gt;&lt;P&gt;In this example I want to see the followin rank order in the first table:&lt;/P&gt;&lt;P&gt;HYUNDAI must be number 11&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CHEVROLET must be number 20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820103#M2869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T11:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820104#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larisa,&lt;/P&gt;&lt;P&gt;You have an extra sum() on the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Budget]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) )), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Budget]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820104#M2870</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-02-18T11:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820105#M2871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820105#M2871</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820106#M2872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is another issue. Could you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, I have three brands with the same budget. Normaly for brands with the same value QlikView defines RankOrder by the means of the interval.&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;98-100&amp;nbsp;&amp;nbsp; Brand 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;98-100&amp;nbsp;&amp;nbsp; Brand 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;98-100&amp;nbsp;&amp;nbsp; Brand 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use your formula the result is defferent.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;E.g.:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;100&amp;nbsp;&amp;nbsp; Brand 1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;100&amp;nbsp;&amp;nbsp; Brand 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;100&amp;nbsp;&amp;nbsp; Brand 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;See the file attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is it possible to tune the formula so that &lt;SPAN style="font-size: 13.3333330154419px;"&gt;RankOrder is shown as interval (e.g. '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;98-100')?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820106#M2872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T13:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820107#M2873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this might do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(R&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(S&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;um&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Budget]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; )), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Brands&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820107#M2873</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2015-02-18T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: question about rank function</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820108#M2874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 14:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/question-about-rank-function/m-p/820108#M2874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-18T14:08:55Z</dc:date>
    </item>
  </channel>
</rss>

