<?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: How to use aggr function inside sum expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616068#M681852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the Application ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 21:08:12 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2014-03-07T21:08:12Z</dc:date>
    <item>
      <title>How to use aggr function inside sum expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616067#M681851</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'm facing a problem on an expression. I need to verify if there is only one month selected or not. I have a pivot table and an expression like this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Sum(Quantity) =0 ,'', // Here I'm sure the dimension will show even there is no Quantity&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(not Match(Function,'A','=') ,iF(ISNULL(Quantity),0,Quantity), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(((Month=1) or ((aggr(Count(distinct Month), Year, LineCode))=1)) and Function='A',Quantity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If((Month=12 or (aggr(Count(distinct Month), Year, LineCode))=1) and Function='=', Quantity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not getting the expect result. This (aggr(Count(distinct Month), Year, LineCode)) does not work when used in the above expression but, if I use just it as another expression, the result is OK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 21:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616067#M681851</guid>
      <dc:creator />
      <dc:date>2014-03-07T21:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use aggr function inside sum expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616068#M681852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the Application ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 21:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616068#M681852</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-03-07T21:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use aggr function inside sum expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616069#M681854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 21:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-aggr-function-inside-sum-expression/m-p/616069#M681854</guid>
      <dc:creator />
      <dc:date>2014-03-07T21:34:31Z</dc:date>
    </item>
  </channel>
</rss>

