<?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: Grouping customers per rating in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430231#M160392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm sorry but I was not able to try your suggestion before today, but... it just works for me!&lt;/P&gt;&lt;P&gt;Thank you so much, but could you please explain me how does Rank() function works? I tried to undersand the manual page but it is not that easy for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Carlo A. Babini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2012 19:39:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-24T19:39:11Z</dc:date>
    <item>
      <title>Grouping customers per rating</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430229#M160390</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;I am facing a little problem, but I can't find a solution.&lt;/P&gt;&lt;P&gt;I have a customers table with the key "C_ID" and a linked sales table (including the amount "SaleAmount"), and I dinamically need to calculate a rating per customer using a variable, and it works. What I am not able to do is to show a linear table with grouping per range of rating and showing the count of C_ID. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the variable "ratingExpr" has value "sum(SaleAmount)"&lt;/P&gt;&lt;P&gt;and I show the rating of every customer with $(=$(ratingExpr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the resulting table should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rating&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | count&lt;/P&gt;&lt;P&gt;-----------------------------------------------------&lt;/P&gt;&lt;P&gt;less than 10.000&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 15&lt;/P&gt;&lt;P&gt;between 10.001 and 20.000&amp;nbsp;&amp;nbsp;&amp;nbsp; | 28&lt;/P&gt;&lt;P&gt;more of 20.000&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this? By using Aggr() ? If yes, could you please explain me how to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Carlo A. Babini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 16:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430229#M160390</guid>
      <dc:creator />
      <dc:date>2012-10-18T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers per rating</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430230#M160391</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;Have you tried calculated dimension ?&lt;/P&gt;&lt;P&gt;You coul use expression as 'rating' dimension, for example:&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(SaleAmount))&amp;lt;10000, 'less than 10.000', 'more than 10.000 or equal') , C_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 17:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430230#M160391</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-18T17:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers per rating</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430231#M160392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm sorry but I was not able to try your suggestion before today, but... it just works for me!&lt;/P&gt;&lt;P&gt;Thank you so much, but could you please explain me how does Rank() function works? I tried to undersand the manual page but it is not that easy for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Carlo A. Babini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 19:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430231#M160392</guid>
      <dc:creator />
      <dc:date>2012-10-24T19:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers per rating</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430232#M160393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="146" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); height: 108px; width: 893px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sum(Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Rank Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;XXX&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;YYY&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ZZZ&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;XYZ&lt;/TD&gt;&lt;TD&gt;1010&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; From the above table, you can find , rank function gives the number based on higher value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if we used like this, =if(rank(sum(Amount)) &amp;lt;= 2, 'Less than 3','More than 3')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; for customer : zzz,xyz display Less than 3&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxx,yyy display More than 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will understand the concept.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 19:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430232#M160393</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-24T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping customers per rating</title>
      <link>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430233#M160394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, now it is a little clearer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Carlo A. Babini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 12:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Grouping-customers-per-rating/m-p/430233#M160394</guid>
      <dc:creator />
      <dc:date>2012-10-25T12:32:23Z</dc:date>
    </item>
  </channel>
</rss>

