<?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 Whats wrong with this set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197083#M56886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the top ten clients for a given region, and use it as a dimension. So I have a calculated dimension which is the following:&lt;/P&gt;&lt;P&gt;=if(aggr(rank({&amp;lt;Region = {'EMEA'}&amp;gt;}sum([$(vCurrency) Volume])), [Sales Client]) &amp;lt;=10, [Sales Client])&lt;/P&gt;&lt;P&gt;However, it doesn't seem to make a difference what I change the 'EMEA' in my set analysis to, is there anything glaringly wrong to you more experienced types with what I'm doing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Sep 2010 16:28:43 GMT</pubDate>
    <dc:creator>richnorris</dc:creator>
    <dc:date>2010-09-10T16:28:43Z</dc:date>
    <item>
      <title>Whats wrong with this set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197083#M56886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get the top ten clients for a given region, and use it as a dimension. So I have a calculated dimension which is the following:&lt;/P&gt;&lt;P&gt;=if(aggr(rank({&amp;lt;Region = {'EMEA'}&amp;gt;}sum([$(vCurrency) Volume])), [Sales Client]) &amp;lt;=10, [Sales Client])&lt;/P&gt;&lt;P&gt;However, it doesn't seem to make a difference what I change the 'EMEA' in my set analysis to, is there anything glaringly wrong to you more experienced types with what I'm doing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 16:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197083#M56886</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-09-10T16:28:43Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197084#M56887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;I guess your set analysis should go in your sum expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=if(aggr(rank(sum({&amp;lt; Region = 'EMEA' &amp;gt;} [$(vCurrency) Volume])), [Sales Client]) &amp;lt;= 10, [Sales Client])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197084#M56887</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-10T17:52:10Z</dc:date>
    </item>
    <item>
      <title>Whats wrong with this set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197085#M56888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, Rank does not take set analysis so you would need to either put it in your inner expression or put an IF statement on the outside.&lt;/P&gt;&lt;P&gt;Edit: Also, your AGGR should be on the outside and the IF should be on the inside: aggr(if(rank(sum(..))&amp;lt;=10,...),_____)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Sep 2010 00:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Whats-wrong-with-this-set-analysis/m-p/197085#M56888</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-11T00:59:32Z</dc:date>
    </item>
  </channel>
</rss>

