<?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 Quick question about aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quick-question-about-aggr-function/m-p/192374#M54049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got problem with memory in my aplication. I'm wondering how much the aggr function (is used about 5-10 times in tables) is allocating so much memory.&lt;/P&gt;&lt;P&gt;This is example of using aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sum(aggr(nodistinct (sum(SAP_PLN)/sum(SAP_ilosc)*if(Match(Left(BW_AUFTR_STKL.BOM_PRODUKT,1),'1','2','4')&amp;gt;0,sum(BW_AUFTR_STKL.STL_QM/(1-GLA)),sum(BW_AUFTR_STKL.STL_LFM))),BW_AUFTR_POS.PROD_ID,ID_POZYCJI,BW_AUFTR_STKL.BOM_PRODUKT)*BW_AUFTR_POS.PP_MENGE)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2009 14:56:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-18T14:56:51Z</dc:date>
    <item>
      <title>Quick question about aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-aggr-function/m-p/192374#M54049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got problem with memory in my aplication. I'm wondering how much the aggr function (is used about 5-10 times in tables) is allocating so much memory.&lt;/P&gt;&lt;P&gt;This is example of using aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sum(aggr(nodistinct (sum(SAP_PLN)/sum(SAP_ilosc)*if(Match(Left(BW_AUFTR_STKL.BOM_PRODUKT,1),'1','2','4')&amp;gt;0,sum(BW_AUFTR_STKL.STL_QM/(1-GLA)),sum(BW_AUFTR_STKL.STL_LFM))),BW_AUFTR_POS.PROD_ID,ID_POZYCJI,BW_AUFTR_STKL.BOM_PRODUKT)*BW_AUFTR_POS.PP_MENGE)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 14:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-aggr-function/m-p/192374#M54049</guid>
      <dc:creator />
      <dc:date>2009-12-18T14:56:51Z</dc:date>
    </item>
    <item>
      <title>Quick question about aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Quick-question-about-aggr-function/m-p/192375#M54050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think of the aggr() function as creating a little temporary table of its own. So it's like you've created a new table with three dimensions and a fairly complicated expression. And you do this for every row in your original table. If QlikView processes these temporary tables one at a time in sequence, then it would just use as much memory as if you built the table yourself and selected the values for that specific row in your original table. But for all I know, QlikView may try to create a lot of these temporary tables in parallel, which could eat up a lot more memory. I don't really know how it's behaving internally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2009 05:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quick-question-about-aggr-function/m-p/192375#M54050</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-19T05:35:39Z</dc:date>
    </item>
  </channel>
</rss>

