<?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 Could really use some help with Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Could-really-use-some-help-with-Calculated-Dimension/m-p/436656#M162872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem using a calculated dimension. Or rather, trying to figure out how to set the correct calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I need is to not show the dimensions(Participant,Age) when the expressions(Rank,Nat,Best) are NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the Best result f.e. is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rank(max({&amp;lt;Participant=&amp;gt;}Result),0,1) = 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max({&amp;lt;Participant=&amp;gt;}Result)&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nat and Rank use the same structure for their expressions, only the "then" part is different (obviously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried about 20 different Calculated dimensions to be able to supress NULL values, but with little success. Partly because Qlikview is doing things I really can't explain, f.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see what was happeneing I added an extra expressions as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(max({&amp;lt;Participant=&amp;gt;}Result),Age)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result was not at all what I expected...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;namely this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, nothing seems to be wrong for the 17 and 18 year olds, but the 19 year old has a NULL expression, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it somehow put the value next to a 19 year old who does not even have a result. The same for 20 year olds, for 21 year olds it put the value by the participant with rank = 2, for 22 year olds for rank = 18, in other words: it seems to be totally random!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect this is the one of the reasons why my calculated conditions did not work as one of my calculated dimensions I tried (and put my hopes on) was something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=if( aggr(max({&amp;lt;Participant=&amp;gt;}Result),Participant,Age) = aggr(max({&amp;lt;Participant=&amp;gt;}Result),Age), Participant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Can anyone help me to hide the dimensions when the expressions are NULL in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or alternatively: can someone explain what is happening here? because I don't understand it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 13:58:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-09T13:58:22Z</dc:date>
    <item>
      <title>Could really use some help with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Could-really-use-some-help-with-Calculated-Dimension/m-p/436656#M162872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem using a calculated dimension. Or rather, trying to figure out how to set the correct calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've got:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I need is to not show the dimensions(Participant,Age) when the expressions(Rank,Nat,Best) are NULL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the Best result f.e. is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rank(max({&amp;lt;Participant=&amp;gt;}Result),0,1) = 1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max({&amp;lt;Participant=&amp;gt;}Result)&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nat and Rank use the same structure for their expressions, only the "then" part is different (obviously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried about 20 different Calculated dimensions to be able to supress NULL values, but with little success. Partly because Qlikview is doing things I really can't explain, f.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see what was happeneing I added an extra expressions as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(max({&amp;lt;Participant=&amp;gt;}Result),Age)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result was not at all what I expected...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;namely this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you can see, nothing seems to be wrong for the 17 and 18 year olds, but the 19 year old has a NULL expression, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it somehow put the value next to a 19 year old who does not even have a result. The same for 20 year olds, for 21 year olds it put the value by the participant with rank = 2, for 22 year olds for rank = 18, in other words: it seems to be totally random!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect this is the one of the reasons why my calculated conditions did not work as one of my calculated dimensions I tried (and put my hopes on) was something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;=if( aggr(max({&amp;lt;Participant=&amp;gt;}Result),Participant,Age) = aggr(max({&amp;lt;Participant=&amp;gt;}Result),Age), Participant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Can anyone help me to hide the dimensions when the expressions are NULL in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or alternatively: can someone explain what is happening here? because I don't understand it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 13:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-really-use-some-help-with-Calculated-Dimension/m-p/436656#M162872</guid>
      <dc:creator />
      <dc:date>2013-04-09T13:58:22Z</dc:date>
    </item>
  </channel>
</rss>

