<?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: Problem with Customer sales ranking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579961#M215534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dimension&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM(Amount)&lt;/P&gt;&lt;P&gt;Aggr(Rank(SUM({1}Amount),4),Product,Customer)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Aggr(Rank(SUM({1}Amount),4),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 15:23:29 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-15T15:23:29Z</dc:date>
    <item>
      <title>Problem with Customer sales ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579960#M215533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a table in my database with the columns: Product, Customer and Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show in a table the ranking of the Customer for a product. The problem is that in the table I have filtered the product and the customer and the rank is 1 every time I tried (or null).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table in database:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 403px; height: 123px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ranking Proposed&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;PR1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CUST1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;PR1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CUST2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;PR1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CUST3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;PR1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;CUST4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my table in qlikview I have to show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="114" style="border: 1px solid rgb(0, 0, 0); width: 402px; height: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Amount&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Ranking&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;PR1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Customer is filtered to CUST2 and this table contains only one row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried with aggr and rank but I always get Ranking 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oscar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 14:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579960#M215533</guid>
      <dc:creator />
      <dc:date>2014-04-15T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Customer sales ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579961#M215534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Straight Table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dimension&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;SUM(Amount)&lt;/P&gt;&lt;P&gt;Aggr(Rank(SUM({1}Amount),4),Product,Customer)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Aggr(Rank(SUM({1}Amount),4),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 15:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579961#M215534</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-15T15:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Customer sales ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579962#M215535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Manish. The first solution proposed works, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 07:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Customer-sales-ranking/m-p/579962#M215535</guid>
      <dc:creator />
      <dc:date>2014-04-16T07:36:17Z</dc:date>
    </item>
  </channel>
</rss>

