<?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 Problem with Rank dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-dimension/m-p/404373#M489734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure whats going on as I have the following calculated dimension that works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank((sum({&amp;lt;Scenario = {'Actual'},GRPCOD={140}&amp;gt;}Amount) - sum({&amp;lt;Scenario = {'Actual'},GRPCOD={'150'}&amp;gt;}Amount)) / sum({&amp;lt;Scenario = {'Actual'},GRPCOD={'150'}&amp;gt;}Amount)),Project)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use a similar calculated dimension on another table which only is slightly different it doesn't work all the time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rank((sum({&amp;lt;Scenario = {'Actual'},GRPCOD={140}&amp;gt;}Amount)) - (sum({&amp;lt;Scenario = {'Project Forecast'},GRPCOD={140}, [Fiscal Year], Month, Quarter, [Posting Date] ={"&amp;lt;=$(=Max([Posting Date]))"}&amp;gt;}Amount))) ,Project) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean by that it doesn't work all the time, is that sometimes based on selections made the sorting isn't as expected as the rank isn't always in the order I expected. I speculate the following "filter" may be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Posting Date] ={"&amp;lt;=$(=Max([Posting Date]))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 03:57:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-06T03:57:03Z</dc:date>
    <item>
      <title>Problem with Rank dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Rank-dimension/m-p/404373#M489734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure whats going on as I have the following calculated dimension that works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank((sum({&amp;lt;Scenario = {'Actual'},GRPCOD={140}&amp;gt;}Amount) - sum({&amp;lt;Scenario = {'Actual'},GRPCOD={'150'}&amp;gt;}Amount)) / sum({&amp;lt;Scenario = {'Actual'},GRPCOD={'150'}&amp;gt;}Amount)),Project)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use a similar calculated dimension on another table which only is slightly different it doesn't work all the time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rank((sum({&amp;lt;Scenario = {'Actual'},GRPCOD={140}&amp;gt;}Amount)) - (sum({&amp;lt;Scenario = {'Project Forecast'},GRPCOD={140}, [Fiscal Year], Month, Quarter, [Posting Date] ={"&amp;lt;=$(=Max([Posting Date]))"}&amp;gt;}Amount))) ,Project) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean by that it doesn't work all the time, is that sometimes based on selections made the sorting isn't as expected as the rank isn't always in the order I expected. I speculate the following "filter" may be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Posting Date] ={"&amp;lt;=$(=Max([Posting Date]))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 03:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Rank-dimension/m-p/404373#M489734</guid>
      <dc:creator />
      <dc:date>2012-11-06T03:57:03Z</dc:date>
    </item>
  </channel>
</rss>

