<?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: Error in calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159992#M34408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to compare the result of function AGGR() with 15... AGGR() returns an array of values, not a single value, and that's most likely the cause of the problem.&lt;/P&gt;&lt;P&gt;Also, if thie is a field name: GeneralCustomerMasterData.Customer Name&amp;amp;Code , then I suspect it needs to be enclosed in square brackets, because of spaces and special characters.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to create a "Top 15" chart, there are many easier ways of doing it:&lt;/P&gt;&lt;P&gt;1. If you sort your chart by Sales, you can then limit the Chart to 15 values.&lt;/P&gt;&lt;P&gt;2. As an alternative, you can use Customer as your dimension, and then in your expression you can define a Set Analysis condition that would search for Customers that have a rank &amp;lt;=15 - then you won't need to use AGGR()&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 16:24:16 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-03-14T16:24:16Z</dc:date>
    <item>
      <title>Rank: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159991#M34407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anyone tell me what the error is I made in this calculated dimension:&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(Sum( {$&amp;lt;[COPA.Fiscal Year]= {$(=max([Calendar.Year])-1)},COPA.Period= {'*'} &amp;gt;} [COPA.Niko Act Gross Sales incl Projects Rebates NL/FR] )), GeneralCustomerMasterData.Customer Name&amp;amp;Code,NikoProductlineGroups.ProductlineDescription2) &amp;lt;=15, GeneralCustomerMasterData.Customer Name&amp;amp;Code,Null())&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 16:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159991#M34407</guid>
      <dc:creator>guyvermeiren</dc:creator>
      <dc:date>2011-03-14T16:05:50Z</dc:date>
    </item>
    <item>
      <title>Rank: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159992#M34408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to compare the result of function AGGR() with 15... AGGR() returns an array of values, not a single value, and that's most likely the cause of the problem.&lt;/P&gt;&lt;P&gt;Also, if thie is a field name: GeneralCustomerMasterData.Customer Name&amp;amp;Code , then I suspect it needs to be enclosed in square brackets, because of spaces and special characters.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to create a "Top 15" chart, there are many easier ways of doing it:&lt;/P&gt;&lt;P&gt;1. If you sort your chart by Sales, you can then limit the Chart to 15 values.&lt;/P&gt;&lt;P&gt;2. As an alternative, you can use Customer as your dimension, and then in your expression you can define a Set Analysis condition that would search for Customers that have a rank &amp;lt;=15 - then you won't need to use AGGR()&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 16:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159992#M34408</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-14T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Rank: Error in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159993#M34409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr() function must be "outside". And, you didn't specify by what to aggr. Here I assume by Customer Name and Code:&lt;BR /&gt;&lt;STRONG&gt;aggr(&lt;/STRONG&gt; if(&amp;lt;your condition which I don't have time to verify&amp;gt;, "GeneralCustomerMasterData.Customer Name"&amp;amp;Code)&lt;STRONG&gt;, "GeneralCustomerMasterData.Customer Name",Code)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 16:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Error-in-calculated-dimension/m-p/159993#M34409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-14T16:51:54Z</dc:date>
    </item>
  </channel>
</rss>

