<?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: How to use Rank and Aggregate while ignoring a selection? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816500#M1037754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ruben, that worked perfectly for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 13:02:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-05T13:02:22Z</dc:date>
    <item>
      <title>How to use Rank and Aggregate while ignoring a selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816498#M1037752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find the company with the highest sales of the product 'Pencil'. I have a calculated dimension that works when all companies are selected. However, for some reason I need the dimension to work when only one company is selected and that does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the dimension I use:&lt;/P&gt;&lt;P&gt;=AGGR(IF(RANK(SUM({1&amp;lt; Year = {2014}, Product = {Pencil}, Companies= &amp;gt;} Sales)) &amp;lt;= 2, Companies), Companies)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know the solution?&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 12:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816498#M1037752</guid>
      <dc:creator />
      <dc:date>2015-01-05T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Rank and Aggregate while ignoring a selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816499#M1037753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MArk, if you don't want the selections to filter you can use a dimension like:&lt;/P&gt;&lt;P&gt;=AGGR(IF(RANK(SUM({1&amp;lt; Year = {2014}, Product = {Pencil}, Companies= &amp;gt;} Sales)) &amp;lt;= 1, Only({1}Companies)), Companies)&lt;/P&gt;&lt;P&gt;(With "supress null values" checked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a expression like:&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt; Year = {2014}, Product = {Pencil}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 12:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816499#M1037753</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-01-05T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Rank and Aggregate while ignoring a selection?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816500#M1037754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ruben, that worked perfectly for me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 13:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Rank-and-Aggregate-while-ignoring-a-selection/m-p/816500#M1037754</guid>
      <dc:creator />
      <dc:date>2015-01-05T13:02:22Z</dc:date>
    </item>
  </channel>
</rss>

