<?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: Rank Between Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683288#M247730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many stores are in your data? And are you reducing the data through selections or trying to calculate over all data)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 01:33:14 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2014-07-01T01:33:14Z</dc:date>
    <item>
      <title>Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683281#M247723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm new to Qlikview and need help with a rank function.&amp;nbsp; I'm trying to rank between values.&amp;nbsp; For example, the store Ranking is from 1 to 391 based on YTD Sales.&amp;nbsp; I would like to see the total YTD Sales for the stores ranked between 50 and 100.&amp;nbsp; I was trying the following but obviously I'm missing something.&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(sum([YTD POS Sales]))&amp;lt;=50and(sum([YTD POS Sales]))&amp;gt;=100,[Store Nbr]),[Store Nbr])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 17:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683281#M247723</guid>
      <dc:creator />
      <dc:date>2014-06-30T17:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683282#M247724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(aggr(rank(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[YTD POS Sales]&lt;/SPAN&gt;)),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Store Nbr]&lt;/SPAN&gt;)&amp;gt;=50 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and aggr(rank(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[YTD POS Sales]&lt;/SPAN&gt;)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Store Nbr]&lt;/SPAN&gt;)&amp;lt;=100,&lt;/P&gt;&lt;P&gt;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[YTD POS Sales]&lt;/SPAN&gt;)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;[Store Nbr]&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683282#M247724</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-30T19:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683283#M247725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo's expression should work, but it's a bit heavy because of the extra aggrs. Here's one that's a little lighter and does the same thing with 1 aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rank(sum([YTD POS Sales]),4,1)&amp;gt;=50 and rank(sum([YTD POS Sales]),4,1)&amp;lt;=100,sum([YTD POS Sales]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Store Nbr]&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;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683283#M247725</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683284#M247726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, there is an extra aggr in my expr, thanks Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 19:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683284#M247726</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-30T19:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683285#M247727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Guys.&amp;nbsp; It says the expression is okay but the chart body says "Allocated memory exceeded".&amp;nbsp; Any idea how to fix that?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 20:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683285#M247727</guid>
      <dc:creator />
      <dc:date>2014-06-30T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683286#M247728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of the expression are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 21:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683286#M247728</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-06-30T21:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683287#M247729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one you provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 00:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683287#M247729</guid>
      <dc:creator />
      <dc:date>2014-07-01T00:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683288#M247730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many stores are in your data? And are you reducing the data through selections or trying to calculate over all data)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 01:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683288#M247730</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-07-01T01:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683289#M247731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 391 stores in the data and calculating over all ytd sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 01:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683289#M247731</guid>
      <dc:creator />
      <dc:date>2014-07-01T01:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683290#M247732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hang on, I just reread you original question. Are you trying to do this with calculated dimensions? The dimension of the chart, using my expression above, should just be Store Nbr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to use calculated dimensions, you can created the following calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;aggr(&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(rank(sum([YTD POS Sales]),4,1)&amp;gt;=50 and rank(sum([YTD POS Sales]),4,1)&amp;lt;=100,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Store Nbr]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,[Store Nbr]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make sure to check the "Suppress When Value is Null" checkbox. The expression of the chart would just be &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum([YTD POS Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Vlad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683290#M247732</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2014-07-01T02:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683291#M247733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!  That worked.  Thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesca GomesDirector of Customer Relations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Merchandise Solutions&lt;/P&gt;&lt;P&gt;1100 Burloak Drive, Suite 300&lt;/P&gt;&lt;P&gt;Burlington, ON  L7L 6B2&lt;/P&gt;&lt;P&gt;Ph. 905-336-8969&lt;/P&gt;&lt;P&gt;www.merchandise-solutions.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Jun 30, 2014 at 11:00 PM, Vlad Gutkovsky &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683291#M247733</guid>
      <dc:creator />
      <dc:date>2014-07-02T12:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Between Values</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683292#M247734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark an answer as correct to aid others who may come searching in future. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Between-Values/m-p/683292#M247734</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-07-02T12:31:44Z</dc:date>
    </item>
  </channel>
</rss>

