<?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 Calculated dimension help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258824#M584753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; dsaluga, another way (if you want QlikView to handle) is to use mappings. Do a mapping load with your products and their "Categories". then applymap(PRODUCT_CDE, whatever). I am not sure whether it was their intended purpose, but whenever I come across a challenge where I would have used a Case statement in SQL - I use mappings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 21:45:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-14T21:45:13Z</dc:date>
    <item>
      <title>Calculated dimension help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258821#M584750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a Pivot chart that uses a subset of&amp;nbsp; hundreds of product codes for analysis so I thought I would put the specific product codes in a calculated dimension to act as a filter.&amp;nbsp; I used the following code for the calculated dimension but it is giving me an error message like Allocated Memory Exceeded. My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If (PRODUCT_CDE= 'BF','BF5','SF','SF5')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be adding even more codes so any advice would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 20:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258821#M584750</guid>
      <dc:creator />
      <dc:date>2011-09-13T20:29:30Z</dc:date>
    </item>
    <item>
      <title>Calculated dimension help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258822#M584751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi dsaluga - seeing that you know the products before hand - why don't you create an inline table in your load script and then use if(ANALYZE = 'Yes', PRODUCT_CDE) in your dimension. your inline table could look like this (It will also be alot less memory intensive than creating deep levels of nested if's in your front-end):&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; PRODUCT_CDE, ANALYZE&lt;BR /&gt; BF, Yes&lt;BR /&gt; BF5, Yes&lt;BR /&gt; SF, Yes&lt;BR /&gt; SF5, Yes&lt;BR /&gt; ABC, No&lt;BR /&gt; DEF, No&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 21:48:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258822#M584751</guid>
      <dc:creator />
      <dc:date>2011-09-13T21:48:16Z</dc:date>
    </item>
    <item>
      <title>Calculated dimension help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258823#M584752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian, thank you for your help.&amp;nbsp; That will probably work.&amp;nbsp; I get these product codes from an SQL database and there may be 50 or more to analyze.&amp;nbsp; I also have used an SQL case statement in the load script that flags the code I need. The database is very fast and does all the work so QlikView just reads the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example &lt;/P&gt;&lt;P&gt;Case&lt;/P&gt;&lt;P&gt;When product_cde in (BF, SF etc)&lt;/P&gt;&lt;P&gt;Then 'I'&lt;/P&gt;&lt;P&gt;When product_cde in (AB, CD etc)]&lt;/P&gt;&lt;P&gt;Then 'E'&lt;/P&gt;&lt;P&gt;Else X End as Product_Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using set analysis in the chart I can simply put Product_Flag = {'I'} to filter these products. There are probably different ways of doing this.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 12:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258823#M584752</guid>
      <dc:creator />
      <dc:date>2011-09-14T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Calculated dimension help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258824#M584753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; dsaluga, another way (if you want QlikView to handle) is to use mappings. Do a mapping load with your products and their "Categories". then applymap(PRODUCT_CDE, whatever). I am not sure whether it was their intended purpose, but whenever I come across a challenge where I would have used a Case statement in SQL - I use mappings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 21:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-help/m-p/258824#M584753</guid>
      <dc:creator />
      <dc:date>2011-09-14T21:45:13Z</dc:date>
    </item>
  </channel>
</rss>

