<?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 Add calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-calculated-dimension/m-p/448537#M565921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add a calculated dimension to a chart and the legend returns an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement used works well in an expression but not in the dimension side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the statement in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;=if(&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;(If(ActivityType='INEN'OR ActivityType='ISSS'OR ActivityType='IDOA',1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;(if(((SUM(_Hours_worked))/[Target Inst Hours])&amp;gt;0 and ((SUM(_Hours_worked))/[Target Inst Hours])&amp;lt;0.3 or ((SUM(_Hours_worked))/[Target Inst Hours])&amp;gt;1.5,1,0))&amp;gt;0,'Problem','No Problem') &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt; Many thanks in advance for your answer.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristel.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 16:10:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-18T16:10:15Z</dc:date>
    <item>
      <title>Add calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-dimension/m-p/448537#M565921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add a calculated dimension to a chart and the legend returns an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement used works well in an expression but not in the dimension side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the statement in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;=if(&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;(If(ActivityType='INEN'OR ActivityType='ISSS'OR ActivityType='IDOA',1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;(if(((SUM(_Hours_worked))/[Target Inst Hours])&amp;gt;0 and ((SUM(_Hours_worked))/[Target Inst Hours])&amp;lt;0.3 or ((SUM(_Hours_worked))/[Target Inst Hours])&amp;gt;1.5,1,0))&amp;gt;0,'Problem','No Problem') &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt; Many thanks in advance for your answer.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristel.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-dimension/m-p/448537#M565921</guid>
      <dc:creator />
      <dc:date>2012-12-18T16:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Add-calculated-dimension/m-p/448538#M565922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use aggregation in a calculated dimension, you will need to wrap it in an aggr() function--remember, that at the dimension level, QlikView does not yet know what dimension it should be aggregating across, so requires an explicit aggr() definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 16:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-calculated-dimension/m-p/448538#M565922</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T16:50:45Z</dc:date>
    </item>
  </channel>
</rss>

