<?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 How to ignore calculated dimension using RANK function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184959#M49638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forum - I know there is a solution to this but I can't figure it out. Usually I would use set analysis to filter out data in my expression but I don't believe I can with the RANK function.&lt;/P&gt;&lt;P&gt;See below and attached example. I simply trying to RANK my dimensions based on Quantity sold, but the problem is that since it's a pivot table I'm creating a calculated dimension to list my top 5 dimensions and bucket the rest in an "Others" category. So when I use the RANK function in my expression it ranks this "Others" dimension as if it were in my original dataset.&lt;/P&gt;&lt;P&gt;I want to ignore the "Others" row in my RANK. Something like&lt;/P&gt;&lt;P&gt;IF Name = 'Others' THEN null() ELSE RANK(Name)&lt;/P&gt;&lt;P&gt;With this the "Others" category will be dropped to the bottom and it will be ignored in the ranking. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3349_sourceID:3349" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jan 2011 20:27:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-25T20:27:34Z</dc:date>
    <item>
      <title>How to ignore calculated dimension using RANK function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184959#M49638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forum - I know there is a solution to this but I can't figure it out. Usually I would use set analysis to filter out data in my expression but I don't believe I can with the RANK function.&lt;/P&gt;&lt;P&gt;See below and attached example. I simply trying to RANK my dimensions based on Quantity sold, but the problem is that since it's a pivot table I'm creating a calculated dimension to list my top 5 dimensions and bucket the rest in an "Others" category. So when I use the RANK function in my expression it ranks this "Others" dimension as if it were in my original dataset.&lt;/P&gt;&lt;P&gt;I want to ignore the "Others" row in my RANK. Something like&lt;/P&gt;&lt;P&gt;IF Name = 'Others' THEN null() ELSE RANK(Name)&lt;/P&gt;&lt;P&gt;With this the "Others" category will be dropped to the bottom and it will be ignored in the ranking. Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3349_sourceID:3349" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 20:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184959#M49638</guid>
      <dc:creator />
      <dc:date>2011-01-25T20:27:34Z</dc:date>
    </item>
    <item>
      <title>How to ignore calculated dimension using RANK function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184960#M49639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out. I used nested Set Analysis to only rank the top 5 Products, basically ignoring the calculated dimension. I forget the power of set analysis sometimes.&lt;/P&gt;&lt;P&gt;Hope this example helps somebody. Just a note, I also added the rank expression below to my SORT expression so that the calculated dimension "Others" would show up last like it does in a regular straight table.&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;/P&gt;&lt;P&gt;) &lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6874.1_2D00_25_2D00_2011-11_2D00_18_2D00_25-AM.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6874.1_2D00_25_2D00_2011-11_2D00_18_2D00_25-AM.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;B&gt;rank&lt;/B&gt;(&lt;B&gt;sum&lt;/B&gt;({$&amp;lt;&lt;B&gt;[Productname]&lt;/B&gt;={&lt;B&gt;"=rank(sum([Quantity])) &amp;lt;= 5"&lt;/B&gt;}&amp;gt;} &lt;B&gt;Quantity&lt;/B&gt;),4,1 &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 20:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184960#M49639</guid>
      <dc:creator />
      <dc:date>2011-01-25T20:57:53Z</dc:date>
    </item>
    <item>
      <title>How to ignore calculated dimension using RANK function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184961#M49640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks mate, It helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Zubair &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2012 12:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-ignore-calculated-dimension-using-RANK-function/m-p/184961#M49640</guid>
      <dc:creator />
      <dc:date>2012-05-27T12:29:57Z</dc:date>
    </item>
  </channel>
</rss>

