<?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 Rank Within a Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254852#M1206055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't exactly what you are trying to do. What type of chart are you creating? Is the Customer a visible dimension in the chart? The expression seems ok, but too complex! Try using this sequence SUM( {$...} IF( Bucket..., Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 May 2010 22:12:46 GMT</pubDate>
    <dc:creator>fernandotoledo</dc:creator>
    <dc:date>2010-05-02T22:12:46Z</dc:date>
    <item>
      <title>Rank Within a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254851#M1206054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created buckets to get the sales of the top X number of clients in a chart using the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (BuckettA = 'Top10', sum({$&amp;lt;Year={2009},Customer = {"=rank(sum({$&amp;lt;Year={2009}&amp;gt;}Sales)) &amp;lt;= 10"}&amp;gt;} Sales)/sum({&amp;lt;Year={2009}&amp;gt;}Sales),&lt;/P&gt;&lt;DIV class="ii gt" id=":d6"&gt;if(BucketB = 'Top20', sum({$&amp;lt;Year={2009},Customer = {"=rank(sum({$&amp;lt;Year={2009}&amp;gt;} Sales)) &amp;lt;= 20"}&amp;gt;} Sales)/sum({&amp;lt;Year={2009}&amp;gt;}Sales),&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;if(BucketC = 'Top30', sum({$&amp;lt;Year={2009},Customer = {"=rank(sum({$&amp;lt;Year={2009}&amp;gt;} Sales)) &amp;lt;= 30"}&amp;gt;} Sales)/sum({&amp;lt;Year={2009}&amp;gt;}Sales),&lt;BR /&gt;&lt;BR /&gt;null())))&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;I layered a dimension of Salesgroups onto the expression above.&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;The result I'm getting is that all the SalesGroups are pulling the TOP 10/20/30 RANK FOR ALL OF 2009 across ALL SALESGROUPS instead&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;of the top 10/20/30 RANK WITHIN THE SALESGROUP.&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;Can someone point out to me how I can adjust/change my expression above to make the ranks within each bucket apply WITHIN THE DIMENSION SalesGroup?&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="ii gt"&gt;Thank you in advance...&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 May 2010 18:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254851#M1206054</guid>
      <dc:creator />
      <dc:date>2010-05-02T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Rank Within a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254852#M1206055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't exactly what you are trying to do. What type of chart are you creating? Is the Customer a visible dimension in the chart? The expression seems ok, but too complex! Try using this sequence SUM( {$...} IF( Bucket..., Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 May 2010 22:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254852#M1206055</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-05-02T22:12:46Z</dc:date>
    </item>
    <item>
      <title>Rank Within a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254853#M1206056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get exactly what you are trying to do. What type of chart are you creating? Is the Customer a visible dimension in the chart? The expression seems ok, but too complex! Try using this sequence SUM( {$...} IF( Bucket..., Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 May 2010 22:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Within-a-Dimension/m-p/254853#M1206056</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-05-02T22:12:56Z</dc:date>
    </item>
  </channel>
</rss>

