<?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: AGGR Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229501#M861674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Aggr( If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.70, 'A', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.15, 'B ',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.05, 'C',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum({1} Income) &amp;gt; 0, 'Other',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; 'Other')))),[Company]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149095_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 10:48:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-11T10:48:35Z</dc:date>
    <item>
      <title>AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229500#M861673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, QlikView community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that I have been trying to fix but can't find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is make a ABC Groups for my company list. I want to use my last year Revenue (called Income in the dataset) to set my companies to ABC analysis. I have that data below. I have companies names and income for 2016 and 2017. I want to use the income last year to make the rules for what companies are in what groups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="427"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="167"&gt;Company&lt;/TD&gt;&lt;TD class="xl69" width="167"&gt;Year&lt;/TD&gt;&lt;TD class="xl69" width="93"&gt;Income&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Seafood&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;1.532.545,78&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Cars Inc.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;374.290,77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Machinery Inc.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;108.202,71&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Frozen Seafood&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;48.767,02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Fresh Food&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;48.274,13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Frozen Food Inc&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;0,00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Seafood&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;53.537&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Cars Inc.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;2.357&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Machinery Inc.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;3.198&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Frozen Seafood&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;1.000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Fresh Food&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;6.225&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Frozen Food Inc&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;454&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Candy Inc.&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;2017&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I used this formula below in the calculated dimension. I want to make in the calculated dimension not in script. The problem I face is the company Candy Inc. That company has no income in 2016 and is not put in group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Aggr ( If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income) &lt;SPAN style="font-size: 10pt;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt; 0.70, 'A', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;SPAN style="font-size: 10pt;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt; 0.15, 'B ',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;SPAN style="font-size: 10pt;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt; 0.05, 'C',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; 'Other'))),[Company]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what can I do to get Candy Inc in group Other even though it has no income in the last year?&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229500#M861673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229501#M861674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Aggr( If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.70, 'A', &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.15, 'B ',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt; 0.05, 'C',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum({1} Income) &amp;gt; 0, 'Other',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; 'Other')))),[Company]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/149095_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 10:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229501#M861674</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-11T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Function</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229502#M861675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bring null income rows also in 'others' bracket as following formula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= Aggr( If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; 0.70, 'A',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; 0.15, 'B ',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If((sum({1&amp;lt;Year ={'2016'}&amp;gt;}Income)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/ sum(TOTAL {1&amp;lt;Year ={'2016'}&amp;gt;}Income))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt; 0.05, 'C',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Sum({1} Income) &amp;gt; 0, 'Other',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Other')))),[Company])&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please let us know if above is working.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 11:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Function/m-p/1229502#M861675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-11T11:40:12Z</dc:date>
    </item>
  </channel>
</rss>

