<?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 Set Operator on Aggr function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368046#M136865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Type as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum "Number" by year, and then rank them. I then pull out certain rankings, and use them as a dimension.&lt;/P&gt;&lt;P&gt;My expression is just sum(Number) - and I did remember to apply the {1} to the expression also when trying to work that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did just realize that I have an extra aggr statement in my current formula which I don't really need, but that won't fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 14:43:56 GMT</pubDate>
    <dc:creator>danielact</dc:creator>
    <dc:date>2012-05-24T14:43:56Z</dc:date>
    <item>
      <title>Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368044#M136863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently using the following dimension:&lt;/P&gt;&lt;P&gt;pick(match(num(aggr(rank(aggr(sum(Number),Type,Year),4,1),Type,Year)),&lt;/P&gt;&lt;P&gt;1000,500,200,100,40,20,10,1),'1/10','1/20','1/50','1/100','1/250','1/500','1/1000','1/10000',)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use a Set Operator to ignore any selections - that would be {1}, right?&lt;/P&gt;&lt;P&gt;At first I thought I'd only need it on the Sum part, but the value is changing when I make a selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get this to ignore any selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368044#M136863</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-24T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368045#M136864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you using type and year as dimension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you explian what you trying to do..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; color: #636363; font-family: Arial; font-size: 12px;"&gt;Celambarasan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368045#M136864</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-05-24T14:40:49Z</dc:date>
    </item>
    <item>
      <title>Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368046#M136865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Type as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum "Number" by year, and then rank them. I then pull out certain rankings, and use them as a dimension.&lt;/P&gt;&lt;P&gt;My expression is just sum(Number) - and I did remember to apply the {1} to the expression also when trying to work that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did just realize that I have an extra aggr statement in my current formula which I don't really need, but that won't fix the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 14:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368046#M136865</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-24T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368047#M136866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need the {1} on the Rank and the Sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368047#M136866</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-24T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368048#M136867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It won't allow it, everything goes to null then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 15:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368048#M136867</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-24T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368049#M136868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it to work somwhat, but I'm still stuck a bit. Here's the issue: when I have my filters set so that every year is still possible, it works. However, when my selections filter out a year, the function doesn't work. I believe this is because the aggr statement can't apply the sum across a year that it doesn't find - although for the years it does have, it will pull the full sum, not only what it's filtered down to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the aggr statement to work across all years?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, here's my Dimension code now:&lt;/P&gt;&lt;P&gt;pick(match(num(aggr(rank(sum({1}Number),4,1),Type,Year)),&lt;/P&gt;&lt;P&gt;1000,500,200,100,40,20,10,1),'1/10','1/20','1/50','1/100','1/250','1/500','1/1000','1/10000',)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 17:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368049#M136868</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-24T17:13:59Z</dc:date>
    </item>
    <item>
      <title>Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368050#M136869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you post a sample data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Instead of aggr change Sum(TOTAL&amp;lt;Type,Year&amp;gt; Number) and try it.Aggr doesn't ve set analysis to restrict the selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 17:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368050#M136869</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-05-24T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operator on Aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368051#M136870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data set is pretty large...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another field I'm not showing in this chart, called Department. Let's say I have 2 departments - A and B.&lt;/P&gt;&lt;P&gt;Let's say Dept. A has Year valued 1 - 5000 and B has 5001-10000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to aggr over all 10000 years, even if I've filtered to just one department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sum(Total) isn't working - and it's for a dimension, so it needs an aggr function. Total doesn't ignore selections, so that won't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 17:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Operator-on-Aggr-function/m-p/368051#M136870</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-24T17:34:49Z</dc:date>
    </item>
  </channel>
</rss>

