<?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 Complex Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253378#M495953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for an aggr expression that would sum amounts if sum of these amounts by name, year and month are less than 200 - see below example. Important thing - expression will work in pivot table with only two dimenions: year and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Name, Year, Month, Product, Amount&lt;/P&gt;&lt;P&gt;John, 2011, 8, A, 150&lt;/P&gt;&lt;P&gt;John, 2011, 8, B, 30&lt;/P&gt;&lt;P&gt;Mary, 2011, 9, C, 160&lt;/P&gt;&lt;P&gt;Mary, 2011, 10, D, 170&lt;/P&gt;&lt;P&gt;Mary, 2011, 10, D, 40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Year, Month, Sum(Amount)&lt;/P&gt;&lt;P&gt;2011, 8, 180&lt;/P&gt;&lt;P&gt;2011, 9, 160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Feb 2012 12:57:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-04T12:57:38Z</dc:date>
    <item>
      <title>Complex Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253378#M495953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for an aggr expression that would sum amounts if sum of these amounts by name, year and month are less than 200 - see below example. Important thing - expression will work in pivot table with only two dimenions: year and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Name, Year, Month, Product, Amount&lt;/P&gt;&lt;P&gt;John, 2011, 8, A, 150&lt;/P&gt;&lt;P&gt;John, 2011, 8, B, 30&lt;/P&gt;&lt;P&gt;Mary, 2011, 9, C, 160&lt;/P&gt;&lt;P&gt;Mary, 2011, 10, D, 170&lt;/P&gt;&lt;P&gt;Mary, 2011, 10, D, 40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Year, Month, Sum(Amount)&lt;/P&gt;&lt;P&gt;2011, 8, 180&lt;/P&gt;&lt;P&gt;2011, 9, 160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 12:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253378#M495953</guid>
      <dc:creator />
      <dc:date>2012-02-04T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Complex Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253379#M495954</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;Try this&lt;/P&gt;&lt;P&gt;2 dimensions :&amp;nbsp; Year , Month&lt;/P&gt;&lt;P&gt;expression :&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;sum(&amp;nbsp;&amp;nbsp; if( aggr( sum(Amount) , Name , Year , Month) &amp;lt; 200 , aggr( sum(Amount) , Name , Year , Month) , null()))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 18:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253379#M495954</guid>
      <dc:creator />
      <dc:date>2012-02-04T18:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253380#M495955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this can help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if(aggr(sum(Amount),Month,Year)&amp;lt;200,aggr(sum(Amount),Month,Year))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 18:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253380#M495955</guid>
      <dc:creator />
      <dc:date>2012-02-04T18:35:15Z</dc:date>
    </item>
    <item>
      <title>Complex Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253381#M495956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you JJ, thank you thefourth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Feb 2012 19:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Aggr/m-p/253381#M495956</guid>
      <dc:creator />
      <dc:date>2012-02-04T19:42:58Z</dc:date>
    </item>
  </channel>
</rss>

