<?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: Doubt about rank() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365775#M136078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm at the same place. Got it working in a pivot with seller dimension expanded but not collapsed. If only 1 country is selected it works OK.&amp;nbsp; This is because Set Analysis only calcluates once per chart so the list of sellers to include is global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tricky one - there will be a way!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the ranking dependent upon user selections?&amp;nbsp; If not you could identify the top 10 sellers per country in the script and flag them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 10:16:35 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-05-25T10:16:35Z</dc:date>
    <item>
      <title>Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365769#M136072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, can someone help me about a rank() graph?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with fields: Country, Seller, Amount, Discount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I do a graph showing for each Country, Sum(Amount) of top ten Sellers (ranking about Amount sold on that Country) and Sum(Discount) of top ten Sellers (ranking about Amount sold on that Country)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it works by using rank() and aggr() commands, but I can't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365769#M136072</guid>
      <dc:creator />
      <dc:date>2012-05-23T16:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365770#M136073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension = Country&lt;/P&gt;&lt;P&gt;Expression = Sum({&amp;lt;Seller={"=Rank(Sum(Amount))&amp;lt;=10"} &amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I think - bit rushed...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365770#M136073</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-23T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365771#M136074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason, thank your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I didn't explain it very well. What I mean, I need to show all countries, and for one country y need to show total amount of top ten sellers, but ranking about sells only on than country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with somethink like: &lt;BR /&gt;Dimension: Country&lt;BR /&gt;Expresion: Sum( {$&amp;lt;Seller= {"=rank(aggr(sum(Amount),Seller)) &amp;lt;= 10"}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it shows amount only for whole top ten sellers, Instead of amount of top ten sellers of each Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 07:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365771#M136074</guid>
      <dc:creator />
      <dc:date>2012-05-25T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365772#M136075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm...I'll have another look when I get to my desk. Can you post a sample of your app to make it easier please. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 07:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365772#M136075</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-25T07:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365773#M136076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Jason, I can't. Company policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I modified your qv with one exemple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 08:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365773#M136076</guid>
      <dc:creator />
      <dc:date>2012-05-25T08:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365774#M136077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can do this if I include the Seller dimension, but I can't totalize, and when I colapse Country dimension it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please, does someone know to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 09:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365774#M136077</guid>
      <dc:creator />
      <dc:date>2012-05-25T09:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365775#M136078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm at the same place. Got it working in a pivot with seller dimension expanded but not collapsed. If only 1 country is selected it works OK.&amp;nbsp; This is because Set Analysis only calcluates once per chart so the list of sellers to include is global.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tricky one - there will be a way!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the ranking dependent upon user selections?&amp;nbsp; If not you could identify the top 10 sellers per country in the script and flag them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 10:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365775#M136078</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-25T10:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365776#M136079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Jason, thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the ranking must be dinamic...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 10:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365776#M136079</guid>
      <dc:creator />
      <dc:date>2012-05-25T10:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365777#M136080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I went for a swim and had a Eureka! moment...we need to put the Aggr() and Rank() into a dynamic dimension for Country, not seller.&amp;nbsp; Simple straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: =Aggr(if(Rank( Sum(Amount))&amp;lt;=10,&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/EM&gt;),Country,Seller) - you will need to tick "Suppress when Null"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: Sum(Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's always a way... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365777#M136080</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-25T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365778#M136081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you very mutch!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with dimension too, editing Country dimension and I could not. But it is perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you one more time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365778#M136081</guid>
      <dc:creator />
      <dc:date>2012-05-25T12:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about rank()</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365779#M136082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pleasure - good challenge, that one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 13:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-about-rank/m-p/365779#M136082</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-25T13:07:19Z</dc:date>
    </item>
  </channel>
</rss>

