<?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: Allocated memory exceeded error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436897#M564049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I beleve your approach is usefull when there are only few dimensions. And unfortunately I've got at least dozen of them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a matter of fact. I've found that when I add these three lines to my macro it suddenly starts to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp; set props = chart.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; props.tableProperties.NumberOfLeftDimensions = dimSelection.Count&lt;/P&gt;&lt;P&gt;&amp;nbsp; chart.SetProperties(props)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach do not affect web client, which is pity. I suspect it's a bug. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 15:35:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-14T15:35:27Z</dc:date>
    <item>
      <title>Allocated memory exceeded error</title>
      <link>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436895#M564047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got this annoying "Allocated memory exceeded" error while trying to dinamically add dimensions to pivot table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm adding them via GUI I get no errors at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Macro I'm using: &lt;/P&gt;&lt;P&gt;sub onSelectMacro&lt;/P&gt;&lt;P&gt;&amp;nbsp; set chart = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&amp;nbsp; ' clean chart dimensions&lt;/P&gt;&lt;P&gt;&amp;nbsp; set dims = chart.GetProperties.Dimensions&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i=0 to dims.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart.RemoveDimension 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'add dimensions&lt;/P&gt;&lt;P&gt;&amp;nbsp; chart.AddDimension "time_name"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set dimSelection = ActiveDocument.fields("dimension").GetSelectedValues&lt;/P&gt;&lt;P&gt;&amp;nbsp; for i=0 to dimSelection.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chart.AddDimension dimSelection.Item(i).text&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching sample file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me sort out this strange behaviour. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 14:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436895#M564047</guid>
      <dc:creator />
      <dc:date>2013-02-14T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Allocated memory exceeded error</title>
      <link>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436896#M564048</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;you can use Calculated Dimension and put the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(GetFieldSelections(dimension) = 'name_name', name_name, rx_name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 14:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436896#M564048</guid>
      <dc:creator />
      <dc:date>2013-02-14T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Allocated memory exceeded error</title>
      <link>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436897#M564049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I beleve your approach is usefull when there are only few dimensions. And unfortunately I've got at least dozen of them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a matter of fact. I've found that when I add these three lines to my macro it suddenly starts to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp; set props = chart.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; props.tableProperties.NumberOfLeftDimensions = dimSelection.Count&lt;/P&gt;&lt;P&gt;&amp;nbsp; chart.SetProperties(props)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach do not affect web client, which is pity. I suspect it's a bug. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 15:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436897#M564049</guid>
      <dc:creator />
      <dc:date>2013-02-14T15:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Allocated memory exceeded error</title>
      <link>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436898#M564050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've had the same problem. It works well with the code that you gave:) You save me a lot of time!&lt;/P&gt;&lt;P&gt;We can report this bug so that it could be fixed in the next release&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 07:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Allocated-memory-exceeded-error/m-p/436898#M564050</guid>
      <dc:creator />
      <dc:date>2013-04-19T07:50:40Z</dc:date>
    </item>
  </channel>
</rss>

