<?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: Calculated Dimension Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256005#M581713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd strongly recommend you to avoid calculated dimensions, as it is memory intensive and can degrade the user experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a possible solution, migrating the calculations to the script. Check it out and let me know what you think...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 15:32:31 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2012-01-10T15:32:31Z</dc:date>
    <item>
      <title>Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256004#M581712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a ABC-Analysis for our product base.&lt;/P&gt;&lt;P&gt;I want to build this into our Qlikview dashboard using a grid chart.&lt;/P&gt;&lt;P&gt;Our ABC-Analysis is based on Sales and on Margin as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt; top 70% = A, between 70% and 90% = B, between 90% and 100% = C.&lt;/P&gt;&lt;P&gt;Short example to clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;% of Total&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Cum. %&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CCC&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;25.000&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;60%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;60%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;10.000&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;24%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;84%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;6.500&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;15%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;99%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DDD&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;500&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;1%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;100%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;TOTAL&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;42.000&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;100%&lt;/TD&gt;&lt;TD style="text-align: center;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;As you can see, as soon as the Cum. % is higher than 70%, it becomes B, and as soon as it is higher than 90%, it becomes a C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Margin:&lt;/STRONG&gt; if the Margin is larger than 30% = A, if between 20% and 30% = B, if smaller than 20% = C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used a calculated dimension for the&lt;STRONG&gt; Margin&lt;/STRONG&gt;, as follows:&lt;/P&gt;&lt;P&gt;=if([Contributive Margin]&amp;lt;20,'C',if([Contributive Margin]&amp;gt;30,'A','B'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That one works. Now I want to use a calculated dimension for the &lt;STRONG&gt;Sales&lt;/STRONG&gt; as well.&lt;/P&gt;&lt;P&gt;However, I do not know how to fill in that one correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will include a small example Qlikview-file I have built, as to clarify it further.&lt;/P&gt;&lt;P&gt;It uses the same data as the small example table above. I will add that Excel-file as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to see in the end should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV ABC Example.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/10129_QV+ABC+Example.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This is based on the data in the Excel file and the QV-file.&lt;/P&gt;&lt;P&gt;If anyone could look into this, that would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any questions, please ask! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ofcourse, thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 09:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256004#M581712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-06T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256005#M581713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd strongly recommend you to avoid calculated dimensions, as it is memory intensive and can degrade the user experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a possible solution, migrating the calculations to the script. Check it out and let me know what you think...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 15:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256005#M581713</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-01-10T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256006#M581717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brilliant solution, never thought it would be possible in the script as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;Thank you very much for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I may, I would like to ask one more question:&lt;/P&gt;&lt;P&gt;Do you know a way to show the number which gives the bubble it's size?&lt;/P&gt;&lt;P&gt;When I turn on 'Labels on Datapoints' in the Presentation Tab of the Grid Chart right now, it shows A, B or C.&lt;/P&gt;&lt;P&gt;I want it to say the number of products counted (in this example that would be 1 for eachb bubble).&lt;/P&gt;&lt;P&gt;You can see the number if you put your mousepointer on top of one of the bubbles (behind the "Count (Material - Code &amp;amp; Name" phrase).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 10:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256006#M581717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-11T10:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256007#M581718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, I tried but can't help you with that. I'm not really used to using this kind of chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you create another discussion about this?&lt;/P&gt;&lt;P&gt;&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;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 12:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256007#M581718</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2012-01-11T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256008#M581719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for trying &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I already started a discussion, no responses yet I'm afraid &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind greetings,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 12:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Problem/m-p/256008#M581719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-11T12:39:59Z</dc:date>
    </item>
  </channel>
</rss>

