<?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: Resolving Out of Object Memory - Simplify Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resolving-Out-of-Object-Memory-Simplify-Expression/m-p/370193#M137661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is still a fairly large if statemtent for a dimension.&amp;nbsp; It is combing through every single record and trying to match to your specs.&amp;nbsp; I would say this is definately your issue.&amp;nbsp; One way to tell is if you replace this dimension with a simple one, does it give you the out of memory error?&amp;nbsp; If not, then you know it is your dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 19:46:52 GMT</pubDate>
    <dc:creator>goldnejea8</dc:creator>
    <dc:date>2012-05-25T19:46:52Z</dc:date>
    <item>
      <title>Resolving Out of Object Memory - Simplify Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-Out-of-Object-Memory-Simplify-Expression/m-p/370192#M137660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting an out of Object Memory error. The QVD files are only 1-5 MB so I'm a little surprised it is a problem so maybe my expression is inefficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I'm doing in the load script. Should I do this in the chart instead?&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Set vM1='Jan'; Set vM2='Feb'; Set vM3='Mar'; Set vM4='Apr';&lt;BR /&gt;Set vM5='May'; Set vM6='Jun'; Set vM7='Jul'; Set vM8='Aug';&lt;BR /&gt;Set vM9='Sep'; Set vM10='Oct'; Set vM11='Nov'; Set vM12='Dec';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for counter=1 to 12&lt;BR /&gt;Set vMonth=$(vM$(counter));&lt;BR /&gt;Set vCount=COUNT({&amp;lt;Month={$(vMonth)}&amp;gt;} SURVEY_ID);&lt;/P&gt;&lt;P&gt;Set vA5=100*COUNT({&amp;lt;Month={$(vMonth)}&amp;gt;} IF(VALUE=5,SURVEY_ID));&lt;BR /&gt;Set vA4=75*COUNT({&amp;lt;Month={$(vMonth)}&amp;gt;} IF(VALUE=4,SURVEY_ID));&lt;BR /&gt;Set vA3=50*COUNT({&amp;lt;Month={$(vMonth)}&amp;gt;} IF(VALUE=3,SURVEY_ID));&lt;BR /&gt;Set vA2=25*COUNT({&amp;lt;Month={$(vMonth)}&amp;gt;} IF(VALUE=2,SURVEY_ID));&lt;BR /&gt;Set vMth$(counter)=Round(($(vA5)+$(vA4)+$(vA3)+$(vA2))/$(vCount),0.01);&lt;BR /&gt;next&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart there's an expression for each month. Should I calculate there instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vMth1)&lt;/P&gt;&lt;P&gt;=$(vMth2)&lt;/P&gt;&lt;P&gt;=$(vMth3)&lt;/P&gt;&lt;P&gt;,etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have these expressions but don't think it's a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(SURVEY_ID)&lt;/P&gt;&lt;P&gt;=Round(Avg ({&amp;lt;SURVEY_ID=p({&amp;lt;VALUE = p(VALUE)&amp;gt;}), VALUE=, VARNAME=, CommentType={ANALYSIS}&amp;gt;} VALUE),0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Dimension. It looks complicated but I don't think it is computationally intensive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SERVICE='IN',IF(match(VARNAME, 'N1','D3','N2','N5','N6','N30','O3','O4','P20')&amp;gt;0 ,QUESTION_TEXT), IF(SERVICE='ER',IF(match(VARNAME, 'B1','B4','B18','B33','C2','C4','C5','F1','F4','F68','A2','A3','A28')&amp;gt;0 ,QUESTION_TEXT),IF(SERVICE='AS',IF(match(VARNAME, 'A13','F3','F27','F35','F116','F162')&amp;gt;0 ,QUESTION_TEXT),IF(SERVICE='RH',IF(match(VARNAME, 'M36','M6','M4','M37','D7','N50','D1','D2','D29','L2','L4','L7','L25','N9','N37','N10')&amp;gt;0 ,QUESTION_TEXT),IF(SERVICE='PY',IF(match(VARNAME, 'L6','L2','B14','L69','B13','L70','I37','I52','D3','C3','C9','A1','L3','C2','K2')&amp;gt;0 ,QUESTION_TEXT),IF(SERVICE='OU',IF(match(VARNAME, 'D2','A6','A3','A26','E114','E44','A17','D3','A2','A48','C6','A4','A48','C6','A4','C2','A5','E38','E4','E1','E102','C8','C121','B88','C7','C1','A7')&amp;gt;0 ,QUESTION_TEXT),IF(SERVICE='HH',IF(match(VARNAME, 'D5','H1','H77','D1','OT1','PT1','F77','C1','B4','C3','B2','C6','C2','C5','C4','B1','D6','OT4','F65','H3','D3','D2','D7','D8','H60','H117','PI1','D4','SW3','PI2','H2','H97')&amp;gt;0 ,QUESTION_TEXT))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 19:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-Out-of-Object-Memory-Simplify-Expression/m-p/370192#M137660</guid>
      <dc:creator />
      <dc:date>2012-05-25T19:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving Out of Object Memory - Simplify Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-Out-of-Object-Memory-Simplify-Expression/m-p/370193#M137661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is still a fairly large if statemtent for a dimension.&amp;nbsp; It is combing through every single record and trying to match to your specs.&amp;nbsp; I would say this is definately your issue.&amp;nbsp; One way to tell is if you replace this dimension with a simple one, does it give you the out of memory error?&amp;nbsp; If not, then you know it is your dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 19:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-Out-of-Object-Memory-Simplify-Expression/m-p/370193#M137661</guid>
      <dc:creator>goldnejea8</dc:creator>
      <dc:date>2012-05-25T19:46:52Z</dc:date>
    </item>
  </channel>
</rss>

